Layers
Last updated
Was this helpful?
Last updated
Was this helpful?
The Layers property contains all of the specific to this Camera. Layers which belong to a camera are drawn only on this camera. Camera-specific layers are useful when making split-screen games which should show visuals specific to one of the screens such as a player's HUD.
Cameras have one Layer in the Layers property by default. This can be accessed in one of two ways:
or
The Layer property is just an alias for Layers[0].
This Layer is added for convenience, but it is not automatically used unless objects are placed on this Layer explicitly. In other words, objects (such as FlatRedBall Sprites) which are added to their respective managers are drawn unlayered by default.