private void OnEnable() { m_CellSize = serializedObject.FindProperty("m_CellSize"); m_CellGap = serializedObject.FindProperty("m_CellGap"); m_CellSwizzle = serializedObject.FindProperty("m_CellSwizzle"); SceneViewGridManager.FlushCachedGridProxy(); }
public override void OnInspectorGUI() { base.serializedObject.Update(); EditorGUILayout.PropertyField(this.m_CellSize, new GUILayoutOption[0]); EditorGUILayout.PropertyField(this.m_CellGap, new GUILayoutOption[0]); EditorGUILayout.PropertyField(this.m_CellSwizzle, new GUILayoutOption[0]); if (base.serializedObject.ApplyModifiedProperties()) { SceneViewGridManager.FlushCachedGridProxy(); } }
public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.PropertyField(m_CellSize); EditorGUILayout.PropertyField(m_CellGap); EditorGUILayout.PropertyField(m_CellSwizzle); if (serializedObject.ApplyModifiedProperties()) { SceneViewGridManager.FlushCachedGridProxy(); } }