RemoveSubCamera

Summary

This function allows you to specify the name of a sub-camera to be removed from the scene. The name of the sub-camera must be exactly as defined by the AddSubCamera function.

Parameters

Name

Type: Text Default: None

The name of the sub-camera to be removed. Must be exactly as defined by the AddSubCamera function that added the camera you want to remove.

See Also

Examples

<addsubcamera Type="World" Name="MyNewCam" Position="100,200,300" Rotation="90,0,0" />
<waitforclick Caption="Click to Remove cam" />
<removesubcamera Name="MyNewCam" />
This code adds a sub-camera to the scene of type World at a position of 100,200,300 and a rotation of 90 degrees along the X axis. The sub-camera is given the name MyNewCam.
The script then waits for a click for a user before calling the RemoveSubCamera function. It passes a Name value of MyNewCam which will find the previously created camera of the same name and remove it.