ISceneStartupclass

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.

objectISceneStartup
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract interface Sandbox.ISceneStartup

Methods3

Showing 3 methods

public virtual void OnClientInitialize()PUBLICVIRTUAL

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.

Returns:void

public virtual void OnHostInitialize()PUBLICVIRTUAL

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

Returns:void

public virtual void OnHostPreInitialize(Sandbox.SceneFile scene)PUBLICVIRTUAL

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

ParameterTypeDescription
sceneSceneFile
Returns:void

On this page