generated from max/template-unity-project
max
3bba6da1a6
- Split local editor data into separate SO - Serializable dicts, sorted lists and sorted sets - Only delete and save loaded partitions
14 lines
691 B
C#
14 lines
691 B
C#
using UnityEngine;
|
|
|
|
namespace VertexColor.ScenePartition.Editor
|
|
{
|
|
[CreateAssetMenu(fileName = "Scene", menuName = "Max/ScenePartitionDataSO")]
|
|
public class ScenePartitionDataSO : ScriptableObject
|
|
{
|
|
public bool hasCreatedPartitions => scenePartitions != null && scenePartitions.Count > 0;
|
|
public SerializableSortedList<uint, ScenePartition> scenePartitions = new SerializableSortedList<uint, ScenePartition>();
|
|
|
|
public bool hasLoadedPartitions => loadedScenePartitions != null && loadedScenePartitions.Count > 0;
|
|
public SerializableSortedList<uint, ScenePartition> loadedScenePartitions = new SerializableSortedList<uint, ScenePartition>();
|
|
}
|
|
} |