Class SceneSystem
The scene system handles the scenes of a game.
public class SceneSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
- Inheritance
-
SceneSystem
- Implements
- Inherited Members
- Extension Methods
Constructors
SceneSystem(IServiceRegistry)
Initializes a new instance of the GameSystemBase class.
public SceneSystem(IServiceRegistry registry)
Parameters
registry
IServiceRegistryThe registry.
Remarks
The GameSystem is expecting the following services to be registered: IGame and IContentManager.
Properties
DoubleViewSplashScreen
Is the splash screen displayed in VR double view.
public bool DoubleViewSplashScreen { get; set; }
Property Value
GraphicsCompositor
public GraphicsCompositor GraphicsCompositor { get; set; }
Property Value
InitialGraphicsCompositorUrl
URL of the graphics compositor loaded at initialization.
public string InitialGraphicsCompositorUrl { get; set; }
Property Value
InitialSceneUrl
URL of the scene loaded at initialization.
public string InitialSceneUrl { get; set; }
Property Value
SceneInstance
Gets or sets the root scene.
public SceneInstance SceneInstance { get; set; }
Property Value
- SceneInstance
The scene
Exceptions
- ArgumentNullException
Scene cannot be null
SplashScreenColor
Splash screen background color.
public Color4 SplashScreenColor { get; set; }
Property Value
SplashScreenEnabled
If splash screen rendering is enabled, true if a splash screen texture is present, and only in release builds
public bool SplashScreenEnabled { get; set; }
Property Value
SplashScreenUrl
URL of the splash screen texture loaded at initialization.
public string SplashScreenUrl { get; set; }
Property Value
Methods
Destroy()
Disposes of object resources.
protected override void Destroy()
Draw(GameTime)
Draws this instance.
public override void Draw(GameTime gameTime)
Parameters
gameTime
GameTimeThe current timing.
LoadContent()
protected override void LoadContent()
Update(GameTime)
This method is called when this game component is updated.
public override void Update(GameTime gameTime)
Parameters
gameTime
GameTimeThe current timing.