3D Lingo Dictionary > O-S > removeOverlay |  |

removeOverlay

Syntax

    member(whichCastmember).camera(whichCamera).removeOverlay(index)

Description

3D command; removes the overlay found in the position specified by `index` from the camera's list of overlays to display.

Example

This statement removes the third overlay from the list of overlays for the camera being used by sprite 5. The overlay will disappear from the stage.

    sprite(5).camera.removeOverlay[1]

See also

`overlay`