-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSceneEntry.cs
More file actions
30 lines (27 loc) · 776 Bytes
/
SceneEntry.cs
File metadata and controls
30 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using UnityEngine;
namespace CCC.Runtime.SceneLoading
{
/// <summary>
/// A <see cref="SceneLoader"/> scene entry.
/// </summary>
[Serializable]
public class SceneEntry
{
/// <summary>
/// The name of the scene.
/// </summary>
[SerializeField, Tooltip("The name of the scene file (without .unity extension)")]
public string sceneName;
/// <summary>
/// The type of the scene.
/// </summary>
[SerializeField, Tooltip("The behavior type of this scene (how it should be managed)")]
public SceneType type;
/// <summary>
/// Should this scene be loaded on SceneLoader's Awake.
/// </summary>
[SerializeField, Tooltip("Whether this scene should be loaded automatically when the SceneLoader starts")]
public bool loadOnStart;
}
}