3D Lingo Dictionary > A-B > addCamera |
![]() ![]() ![]() |
addCamera
Syntax
sprite(whichSprite
).addCamera(whichCamera, index
)
Description
3D command; adds the camera whichCamera
, at the given index
position, to the list of cameras for the sprite. If index
is greater than the value of cameraCount()
, the camera is added to the end of the list. The view from each camera is displayed on top of the view from cameras with lower index
positions. You can set the rect
property of each camera to display multiple views within the sprite.
Example
This statement inserts the camera named FlightCam at the fifth index position of the list of cameras of sprite 12:
sprite(12).addCamera(member("scene").camera("FlightCam"), 5)
See also
![]() ![]() ![]() |