Files
2026-06-04 11:42:34 +02:00

76 lines
2.2 KiB
C#

using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x0200003C RID: 60
internal sealed class DrivenPropertyManager
{
// Token: 0x06000456 RID: 1110 RVA: 0x00007630 File Offset: 0x00005830
[Conditional("UNITY_EDITOR")]
public static void RegisterProperty(Object driver, Object target, string propertyPath)
{
if (driver == null)
{
throw new ArgumentNullException("driver");
}
if (target == null)
{
throw new ArgumentNullException("target");
}
if (propertyPath == null)
{
throw new ArgumentNullException("propertyPath");
}
DrivenPropertyManager.RegisterPropertyInternal(driver, target, propertyPath);
}
// Token: 0x06000457 RID: 1111 RVA: 0x00007688 File Offset: 0x00005888
[Conditional("UNITY_EDITOR")]
public static void UnregisterProperty(Object driver, Object target, string propertyPath)
{
if (driver == null)
{
throw new ArgumentNullException("driver");
}
if (target == null)
{
throw new ArgumentNullException("target");
}
if (propertyPath == null)
{
throw new ArgumentNullException("propertyPath");
}
DrivenPropertyManager.UnregisterPropertyInternal(driver, target, propertyPath);
}
// Token: 0x06000458 RID: 1112 RVA: 0x000076E0 File Offset: 0x000058E0
[Conditional("UNITY_EDITOR")]
public static void UnregisterProperties(Object driver)
{
if (driver == null)
{
throw new ArgumentNullException("driver");
}
DrivenPropertyManager.UnregisterPropertiesInternal(driver);
}
// Token: 0x06000459 RID: 1113
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void RegisterPropertyInternal(Object driver, Object target, string propertyPath);
// Token: 0x0600045A RID: 1114
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void UnregisterPropertyInternal(Object driver, Object target, string propertyPath);
// Token: 0x0600045B RID: 1115
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void UnregisterPropertiesInternal(Object driver);
}
}