コード例 #1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();
            MeshDetails myScript = (MeshDetails)target;

            // Validate Prefab Based Properties
            if (myScript.gameObject.layer != ExporterWindow.PrefabIndex)
            {
                if (myScript.meshPrefabProperties.makePrefabInstance == true)
                {
                    myScript.meshPrefabProperties.makePrefabInstance = false;
                }
            }
        }
コード例 #2
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     MeshDetails myScript = (MeshDetails)target;
 }