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; } } }
public override void OnInspectorGUI() { DrawDefaultInspector(); MeshDetails myScript = (MeshDetails)target; }