GraphicsManagerCreateBackground Method |
Create and return a GameObject with background attached to it.
Note: also attach it to either the active scene root, or a given GameObject.
Namespace:
GeonBit.Managers
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public GameObject CreateBackground(
string texture,
GameObject parent = null
)
Parameters
- texture
- Type: SystemString
Skybox texture (leave null for default texture). - parent (Optional)
- Type: GeonBit.ECSGameObject
Optional GameObject to attach add skybox to (as a child). If null, will add to active scene's root.
Return Value
Type:
GameObjectGameObject containing background.
See Also