This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.UIElements; | |
using System; | |
using System.Collections.Generic; | |
public static class ControlUtility | |
{ | |
private static class ControlCache<TBaseControl, TBaseObject> where TBaseControl : VisualElement where TBaseObject : class | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
// TData should be a plain class or struct with the [System.Serializable] attribute. | |
// TData can implement ISerializationCallbackReceiver if needed for more advanced uses. | |
public class PlainDataInstancer<TData> : ScriptableObject | |
{ | |
private static bool s_DataTypeValidated; | |
[SerializeField] private TData m_PrototypeData; |