Beispiel #1
0
 //-------------------------------------------------
 void OnEnable()
 {
     if (Selection.activeTransform)
     {
         VRTRIXGloveTelportPoint teleportPoint = Selection.activeTransform.GetComponent <VRTRIXGloveTelportPoint>();
         teleportPoint.UpdateVisualsInEditor();
     }
 }
Beispiel #2
0
        //-------------------------------------------------
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            if (Selection.activeTransform)
            {
                VRTRIXGloveTelportPoint teleportPoint = Selection.activeTransform.GetComponent <VRTRIXGloveTelportPoint>();
                if (GUI.changed)
                {
                    teleportPoint.UpdateVisualsInEditor();
                }
            }
        }