public static void UnRegisterBinding(DataBindingBase binding) { if (BindingComponents.ContainsKey(binding)) { BindingComponents.Remove(binding); } }
public static void RegisterBinding(DataBindingBase binding) { BindingComponents[binding] = GetPathStringOfBinding(binding.gameObject, binding); }
public static string GetPathStringOfBinding(GameObject go, DataBindingBase binding = null) { return($"{go.scene.path}{go.GetPathInScene()}/{binding?.GetType().Name}"); }