public static void UnregisterDrivenProperty(Object driver, Object target, string property) { #if UNITY_2020_1_OR_NEWER && RUNTIME_VISIBLE_TO_PROBUILDER_LANDED DrivenPropertyManager.UnregisterProperty(driver, target, property); #else unregisterProperty.Invoke(null, new object[] { driver, target, property }); #endif }
// Same as RegisterProperty but produces an error if the property could not be found. //public static void TryRegisterProperty(Object driver, Object target, string propertyPath) => DrivenPropertyManager.TryRegisterProperty(driver, target, propertyPath); public static void UnregisterProperty(Object driver, Object target, string propertyPath) => DrivenPropertyManager.UnregisterProperty(driver, target, propertyPath);