generated from max/template-unity-project
Update ScenePartitionSOEditor.cs
This commit is contained in:
parent
8b44c33813
commit
d859ad1af5
@ -39,33 +39,28 @@ public override void OnInspectorGUI()
|
||||
|
||||
EditorGUIUtils.HorizontalLine();
|
||||
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
if (GUILayout.Button("Load All", EditorStyles.miniButtonLeft))
|
||||
if (GUILayout.Button("Load All"))
|
||||
{
|
||||
scenePartitionSO.LoadAll();
|
||||
}
|
||||
|
||||
if (GUILayout.Button("Unload", EditorStyles.miniButtonRight))
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
if (GUILayout.Button(new GUIContent("Unload", "Empty the scene and save it (so it has no changes in source control)."), EditorStyles.miniButtonLeft))
|
||||
{
|
||||
scenePartitionSO.Unload();
|
||||
}
|
||||
}
|
||||
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
if (GUILayout.Button("Save", EditorStyles.miniButtonLeft))
|
||||
{
|
||||
scenePartitionSO.Save();
|
||||
}
|
||||
|
||||
if (GUILayout.Button(new GUIContent("Reload", "Discard changes and reload"), EditorStyles.miniButtonRight))
|
||||
if (GUILayout.Button(new GUIContent("Reload", "Discard changes and reload loaded partitions."), EditorStyles.miniButtonRight))
|
||||
{
|
||||
scenePartitionSO.Reload();
|
||||
}
|
||||
}
|
||||
|
||||
EditorGUIUtils.HorizontalLine();
|
||||
if (GUILayout.Button("Save"))
|
||||
{
|
||||
scenePartitionSO.Save();
|
||||
}
|
||||
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
@ -87,6 +82,8 @@ public override void OnInspectorGUI()
|
||||
}
|
||||
|
||||
if (scenePartitionSO.Data.SceneGrid != null)
|
||||
{
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
gridId = EditorGUILayout.IntField("gridId", gridId);
|
||||
|
||||
@ -94,6 +91,9 @@ public override void OnInspectorGUI()
|
||||
{
|
||||
scenePartitionSO.LoadCell(gridId);
|
||||
}
|
||||
}
|
||||
|
||||
EditorGUIUtils.HorizontalLine();
|
||||
|
||||
using (EditorGUIUtils.FoldoutHeaderScope foldoutGroup = new EditorGUIUtils.FoldoutHeaderScope("gridData", ref foldoutGroupEnabled))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user