Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Layers

A Layers object assigns an Object3D to 1 or more of 32 layers numbered 0 to 31 - internally the layers are stored as a bit mask, and by default all Object3Ds are a member of layer 0. This can be used to control visibility - an object must share a layer with a camera to be visible when that camera's view is rendered. All classes that inherit from Object3D have an Object3D.layers property which is an instance of this class.

Hierarchy

  • Layers

Index

Constructors

constructor

Properties

mask

mask: number

A bit mask storing which of the 32 layers this layers object is currently a member of.

Methods

disable

  • disable(channel: number): void

disableAll

  • disableAll(): void

enable

  • enable(channel: number): void

enableAll

  • enableAll(): void

isEnabled

  • isEnabled(channel: number): boolean

set

  • set(channel: number): void

test

toggle

  • toggle(channel: number): void

Generated using TypeDoc