2025-05-01 01:48:08 -07:00

19 lines
724 B
C#

#if UNITY_EDITOR
using UnityEditor;
using UnityEngine.Localization.Bridge;
namespace UnityEngine.Localization
{
internal abstract class PropertyDriver<T> : ScriptableSingleton<T> where T : ScriptableObject
{
public static void RegisterProperty(Object target, string propertyPath) => DrivenPropertyManagerBridge.RegisterProperty(instance, target, propertyPath);
public static void UnregisterProperty(Object target, string propertyPath) => DrivenPropertyManagerBridge.UnregisterProperty(instance, target, propertyPath);
public static void UnregisterProperties() => DrivenPropertyManagerBridge.UnregisterProperties(instance);
void OnEnable() => name = GetType().Name;
}
}
#endif