private static void OnReloadScripts()
 {
     if (EditorApplication.isPlayingOrWillChangePlaymode == false)
     {
         ValueChangeEvent.InitializeAllValueChangeEvents();
     }
 }
 private static void OnPlayModeChange(PlayModeStateChange mode)
 {
     if (mode == PlayModeStateChange.EnteredEditMode)
     {
         ValueChangeEvent.InitializeAllValueChangeEvents();
     }
 }
        private static void OnHierarchyChange()
        {
            Scene getScene = SceneManager.GetActiveScene();

            if (getScene != activeScene)
            {
                ValueChangeEvent.InitializeAllValueChangeEvents();
                activeScene = getScene;
            }
        }
        private void InitMasterExplorer(ValueChangeEvent target)
        {
            masterExplorer = new ValueChangeEventExplorer();

            int masterCount = target.MasterCount;

            if (target.MasterCount == 0)
            {
                masterExplorer.selectedGameObject = Selection.activeGameObject;
            }
            else
            {
                masterExplorer.SetSelection(target.GetMaster(target.MasterCount - 1));
            }

            masterExplorer.filter = new System.Predicate <ValueChangeEventID>(
                id => id.ValueChangeEvent != null &&
                (target.ValueType == null || id.ValueChangeEvent.ValueType == target.ValueType) &&
                id.ValueChangeEvent != target);
        }
 public ValueChangeEventMastersEditor(ValueChangeEvent vce)
 {
     target = vce;
 }