Update ScenePartitionSO.cs

This commit is contained in:
max 2023-06-26 01:09:06 +02:00
parent b6f9052cff
commit 3118e18c20

View File

@ -42,13 +42,9 @@ public void CreateScene()
/// </summary> /// </summary>
public void LoadAll() public void LoadAll()
{ {
AssetDatabase.StartAssetEditing();
CreateScenePartitions(); CreateScenePartitions();
SortedSet<uint> ids = new SortedSet<uint>(scenePartitionData.ScenePartitions.Keys); SortedSet<uint> ids = new SortedSet<uint>(scenePartitionData.ScenePartitions.Keys);
LoadScenePartitions(ids); LoadScenePartitions(ids);
AssetDatabase.StopAssetEditing();
} }
private void CreateScenePartitions() private void CreateScenePartitions()