Layers class
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.
Constructors
- Layers()
- Create a new Layers object, with membership initially set to layer 0.
Properties
Methods
- 
  disable(int channel) → void 
- 
  channel- an integer from 0 to 31.
- 
  disableAll() → void 
- Remove membership from all layers.
- 
  enable(int channel) → void 
- 
  channel- an integer from 0 to 31.
- 
  enableAll() → void 
- Add membership to all layers.
- 
  isEnabled(int channel) → bool 
- 
  channel- an integer from 0 to 31.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  set(int channel) → void 
- 
  channel- an integer from 0 to 31.
- 
  test(Layers layers) → bool 
- 
  layers- a Layers object
- 
  toggle(int channel) → void 
- 
  channel- an integer from 0 to 31.
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited