private void OnEnable()
 {
     if (IsPrefab = CustomEditorGUI.IsPrefab(targets))
     {
         return;
     }
 }
Ejemplo n.º 2
0
        void OnEnable()
        {
            if (target == null || Selection.activeGameObject == null)
            {
                return;
            }

            if (bPrefab = CustomEditorGUI.IsPrefab(targets))
            {
                return;
            }

            update_InspectorTile();

            if (screenInfoFontStyle == null)
            {
                screenInfoFontStyle = new GUIStyle();
                screenInfoFontStyle.normal.textColor = Color.green;
                screenInfoFontStyle.fontStyle        = FontStyle.Bold;
                screenInfoFontStyle.fontSize         = 15;
            }

            if (SceneView.lastActiveSceneView != null && bFrameSelected)
            {
                SceneView.lastActiveSceneView.FrameSelected(false);
            }
        }