// -------------------------------------------------- // // PUBLIC METHODS // // -------------------------------------------------- // public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.LabelField(Styles.propertiesText, EditorStyles.boldLabel); EditorGUILayout.PropertyField(m_RayDensityProp, Styles.rayDensityText); EditorGUILayout.Space(); EditorGUILayout.LabelField(Styles.bakeToolsText, EditorStyles.boldLabel); BakeEditor.DrawBakeTools(target as IBake); serializedObject.ApplyModifiedProperties(); }
// -------------------------------------------------- // // PUBLIC METHODS // // -------------------------------------------------- // public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.LabelField(Styles.propertiesText, EditorStyles.boldLabel); EditorGUILayout.PropertyField(m_VolumeModeProp, Styles.modeText); if (m_VolumeModeProp.enumValueIndex != (int)VolumeMode.Manual) { EditorGUILayout.PropertyField(m_SubdivisionsProp, Styles.subdivisionsText); } EditorGUILayout.Space(); EditorGUILayout.LabelField(Styles.bakeToolsText, EditorStyles.boldLabel); BakeEditor.DrawBakeTools(target as IBake); serializedObject.ApplyModifiedProperties(); }
// -------------------------------------------------- // // PUBLIC METHODS // // -------------------------------------------------- // public override void OnInspectorGUI() { BakeEditor.DrawBakeTools(target as IBake); }