v4.0
Creates a container under the environment. The container can be either a Group to contain an X3DObject or a folder object to contain a non-3DObject.
oReturn = AddContainerToEnvironment( Environment, Type, [Support3DObject], [Name] ); |
Returns the new container as either a Group (to contain X3DObject objects) or as a CollectionItem.
Parameter | Type | Description |
---|---|---|
Environment | SimulationEnvironment | The environment where the new container will go. |
Type | String | Specifies the type of group, this will be used to determine which group is operator is to be used when connecting a simulation on the environment. |
Support3DObject | Boolean |
Creates a group if set to true. Default Value: true |
Name | String |
Name for the new container Default Value: MyGroup |