public override void OnInspectorGUI() { //base.OnInspectorGUI(); Undo.RecordObject(Camera, "RTS_CAmera"); tabs.Draw(); if (GUI.changed) { Camera.LastTab = tabs.CurrentMethodIndex; } EditorUtility.SetDirty(Camera); }
public override void OnInspectorGUI() { //base.OnInspectorGUI(); Undo.RecordObject(camera, "RTS_CameraManager"); tabs.Draw(); if (GUI.changed) { camera.lastTab = tabs.curMethodIndex; } EditorUtility.SetDirty(camera); }