API ReferenceSandbox
public class Sandbox.SceneFile : Sandbox.GameResource
A scene file contains a collection of GameObject with Components and their properties.
Related Guides
Broader workflow and conceptual references connected to this API.
ISceneStartup
This event interface allows you to listen to Scene startup events. These events are run in three places:
Scene Metadata
You can implement the ISceneMetadata interface in any Component that has data you'd like saved to Metadata. Metadata is data that can be accessed without needing to load a Scene or clone a Prefab (accessed via either the SceneFile or PrefabFile)
Constructors
Showing 1 constructors
public SceneFile()
No results match this filter.
Methods
Showing 2 methods
protected virtual Sandbox.Bitmap CreateAssetTypeIcon(int width, int height)
public string GetMetadata(string title, string defaultValue = null)
Parameters
defaultValue: Default: null
No results match this filter.
Properties
Showing 8 properties
protected virtual object Sandbox.SceneFile.ActionGraphTarget { get; set; }
public string Sandbox.SceneFile.Description { get; set; }Obsolete
Obsolete: Use GetMetadata
public System.Guid Sandbox.SceneFile.Id { get; set; }
public virtual int Sandbox.SceneFile.ResourceVersion { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.SceneFile |