s&box docs

public abstract interface Sandbox.ISceneStartup

Allows listening to events related to scene startup. This should really only apply to GameObjectSystem's because components won't have been spawned/created when most of this is invoked.

Broader workflow and conceptual references connected to this API.

Methods

Showing 3 methods

public virtual void OnClientInitialize()

Called in game after the client has loaded the initial scene from the server, or after OnHostInitialize. This is not called on the dedicated server.

public virtual void OnHostInitialize()

Called after the scene is loaded. In game only, on the host only.

Implementations

public virtual void OnHostPreInitialize(Sandbox.SceneFile scene)

Called before the scene is loaded. In game only, on host only.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.ISceneStartup

On this page