RemoveLastSubCamera

Summary

This function removes the last sub-camera added, regardless of whether it is a Feed camera or a World camera.

Parameters

There are no parameters for this function.

See Also

Examples

<addsubcamera Type="World" Name="Camera1" Position="10,23,456" />
<addsubcamera Type="World" Name="Camera2" Position="234,544,100"  />
<addsubcamera Type="World" Name="Camera3" Position="100,200,300" />
<waitforclick Caption="Click to Remove cam" />
<removelastsubcamera/>
This code adds a three sub-camera's to the scene of type World named Camera1 Camera2 and Camera3 respectively.
The script then waits for a click for a user before calling the RemoveLastSubCamera function removing the last camera added, which in this case is Camera3.