API ReferenceSandbox.Mounting

SceneLoader<T>class

Base class for a mount loader that produces a `Sandbox.SceneFile` built in code. Override `Sandbox.Mounting.SceneLoader.BuildScene` and create GameObjects - they become part of the mounted scene. Registration and teardown are handled for you.

objectResourceLoader<T>SceneLoader<T>
Namespace
Sandbox.Mounting
Assembly
Sandbox.Engine
Declaration
public abstract class Sandbox.Mounting.SceneLoader<T> : Sandbox.Mounting.ResourceLoader`1<T>

Constructors1

Showing 1 constructors

protected SceneLoader<T>()PROTECTEDCONSTRUCTOR

Methods4

Showing 4 methods

protected virtual void BuildScene()PROTECTEDVIRTUAL

Build the scene contents. Any GameObjects created here become part of the mounted scene.

Returns:void

protected virtual Sandbox.Texture GetThumbnail()PROTECTEDVIRTUAL

Load or create the thumbnail image for this scene, the result is cached.

Returns:Texture

protected virtual sealed object Load()PROTECTEDVIRTUAL

Returns:object

protected virtual sealed void Shutdown()PROTECTEDVIRTUAL

Returns:void

Properties1

Showing 1 properties

public virtual sealed Sandbox.Texture Sandbox.Mounting.SceneLoader<T>.Thumbnail { get; set; }PUBLICVIRTUALGETSET

Returns:Texture

On this page