Method AddScene
AddScene(GameObject[], string)
Adds a scene to the glTF. If the conversion to glTF was not flawless (i.e. parts of the scene were not converted 100% correctly) you still might be able to export a glTF. You may use the CollectingLogger to analyze what exactly went wrong.
Declaration
public bool AddScene(GameObject[] gameObjects, string name = null)
Parameters
Type | Name | Description |
---|---|---|
GameObject[] | gameObjects | Root level GameObjects (will get added recursively) |
string | name | Name of the scene |
Returns
Type | Description |
---|---|
bool | True if the scene was added flawlessly, false otherwise |