Api Sandbox ISceneStartup
interface

ISceneStartup

public interface 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.

Methods

virtual Void OnHostPreInitialize(SceneFile scene)

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

virtual Void OnHostInitialize()

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

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.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.ISceneStartup