Banuba SDK
|
A class representing a displayable scene. More...
#import <BNBScene.h>
Instance Methods | |
(void) | - setName: |
Set a new name for a scene. More... | |
(nonnull NSString *) | - getName |
Get a scene name. More... | |
(nullable BNBEntity *) | - getRoot |
Get the root of entities hierarchy. More... | |
(nullable BNBAssetManager *) | - getAssetManager |
Get the AssetManager of a current scene. More... | |
(void) | - addLayer: |
(nonnull NSArray< BNBLayer * > *) | - getLayers |
(nullable BNBLayer *) | - getLayer: |
Return first found layer with name layerName or NULL if such layer doesn't exist. More... | |
(void) | - removeLayer: |
(void) | - setRenderList: |
(void) | - clearRenderList |
A class representing a displayable scene.
Aggregates in one place the hierarchy of Entities with their Components, AssetManager and RenderList and makes it work all together.
Definition at line 16 of file BNBScene.h.
- (void) addLayer: | (nullable BNBLayer *) | layer |
- (void) clearRenderList |
- (nullable BNBAssetManager *) getAssetManager |
Get the AssetManager of a current scene.
It always exists.
- (nullable BNBLayer *) getLayer: | (nonnull NSString *) | layerName |
Return first found layer with name layerName
or NULL if such layer doesn't exist.
- (nonnull NSArray<BNBLayer *> *) getLayers |
- (nonnull NSString *) getName |
Get a scene name.
- (nullable BNBEntity *) getRoot |
Get the root of entities hierarchy.
It always exists and has a name "Root".
- (void) removeLayer: | (nullable BNBLayer *) | layer |
- (void) setName: | (nonnull NSString *) | name |
Set a new name for a scene.
The name could be empty.
- (void) setRenderList: | (nullable BNBRenderList *) | renderList |