SceneObject

A SceneObject is any object that can be placed in a scene. SceneObjects get much of their functionality from components, which can be added to a SceneObject to provide dynamic behaviors, rendering capabilities, etc.

Constructor

new L3D.SceneObject()

Mixes In:

Extends

Properties

active bool

If an object is not active, it is ignored during update and rendering.

icon String

The icon to use for this object.

Overrides:
id String

The unique identifier of the object.

isCamera bool

Does the object have a camera component?

isLight bool

Does the object have a light component?

isStatic bool

If an object is static, it will not be included in physics simulations.

Overrides:
name String

The name of the object.

Overrides:
onModified Signal

Fired when the object has been modified.

Overrides:
onNameChanged Signal

Fired when the object's name changes.

selectable bool

If an object is not selectable, it will not be checked for selection in the viewport.

transform Transform

The root transform component of the object.

visible bool

If an object is not visible, it is updated not but rendered.

Methods

clone(options) → Object

Overrides:

Creates a clone of this object.

Parameters
options Object

Options for the clone method.

Returns
Object

configure(o)

Overrides:

Load the object data from JSON.

Parameters
o Object

object containing the configuration data.

getCamera()

Returns the first camera component found in the object.

getLight() → nullable Light

Returns the first light component found in the object.

Returns
Light

getPropertyInfo(path) → Object

Overrides:

Get information about a particular property of this object.

Parameters
path String
Returns
Object

serialize() → Object

Overrides:

Serialize the object to a JSON structure.

Returns
Object

The serialized version of the object.

setModified()

Overrides:

Fires the objects onModified signal.

toJSON() → Object

Overrides:

Serialize the object to a JSON structure

Returns
Object

The serialized version of the object.