SgScene¶
Reference¶
- class SgScene¶
- module:
- create(options, parent)¶
Create a new scene object in the scenegraph.
- Parameters:¶
options (
table
) – A table of options to fill the parametersparent (
SceneObject
) – The parent scene object to add this to
- Returns:¶
a promise which will resolve to the created object
- Return type:¶
Promise
- fromObject(obj)¶
Create a scene object from another scene object
- Parameters:¶
obj (
SceneObject
) – The scene object to convert