Exemple #1
0
            public ScriptObjValidationInfo(PropertyTree tree, OdinProjectValidator window)
            {
                this.ScriptableObj = tree != null ? (ScriptableObject)tree.WeakTargets[0] : null;
                this.propertyTree  = tree;
                this.window        = window;

                this.Name = "           " + (this.ScriptableObj != null ? this.ScriptableObj.name + " - " + this.ScriptableObj.GetType().GetNiceName() : "");
            }
Exemple #2
0
            public BehaviourValidationInfo(PropertyTree tree, OdinProjectValidator window, GameObject go)
            {
                this.Behav = (tree != null) ? (Behaviour)tree.WeakTargets[0] : null;

                this.propertyTree = tree;
                this.window       = window;
                this.GameObject   = go;

                this.Name = "           " + this.GameObject.name + (this.Behav != null ? " - " + this.Behav.GetType().GetNiceName() : "");
            }