Exemple #1
0
        //-----------------------------------------------------------------------------
        // Methods
        //-----------------------------------------------------------------------------

        private void OnEnable()
        {
            TransformEditor.instance = this;
            this.pos            = this.serializedObject.FindProperty(GlobalConfig.PROPERTY_ID_POSITION);
            this.rot            = this.serializedObject.FindProperty(GlobalConfig.PROPERTY_ID_ROTATION);
            this.scale          = this.serializedObject.FindProperty(GlobalConfig.PROPERTY_ID_SCALE);
            this.transform      = (Transform)this.serializedObject.targetObject;
            this.selectionCount = Selection.gameObjects.Length;
        }
Exemple #2
0
        //-----------------------------------------------------------------------------

        private void OnDestroy()
        {
            TransformEditor.instance = null;
        }