SceneNode

clay.compositor. SceneNode

# new SceneNode()

Source:

Extends

Members

# __uid__ :number

Source:
Inherited From:
Type:
  • number

# autoUpdateScene :boolean

Source:
Type:
  • boolean

# camera :clay.Camera

Source:
Type:
Source:
Inherited From:

Input links, will be updated by the graph

Type:
  • Object

# name :string

Source:
Overrides:
Type:
  • string
Source:
Inherited From:

Output links, will be updated by the graph

Type:
  • Object

# preZ :boolean

Source:
Type:
  • boolean

# scene :clay.Scene

Source:
Type:

Methods

# after(name, action, contextopt)

Source:
Inherited From:
Mixes In:

Alias of once('after' + name)

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# before(name, action, contextopt)

Source:
Inherited From:
Mixes In:

Alias of once('before' + name)

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# error(action, contextopt)

Source:
Inherited From:
Mixes In:

Alias of on('error')

Parameters:
Name Type Attributes Description
action function
context Object <optional>

# getParameter(name)

Source:
Inherited From:

Get parameter value

Parameters:
Name Type Description
name string
Returns:

# has(name, action) → {boolean}

Source:
Inherited From:
Mixes In:

If registered the event handler

Parameters:
Name Type Description
name string
action function
Returns:
Type
boolean

# off(action, contextopt)

Source:
Inherited From:
Mixes In:

Remove event listener

Parameters:
Name Type Attributes Description
action function
context Object <optional>

# on(name, action, contextopt)

Source:
Inherited From:
Mixes In:

Register event handler

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# once(name, action, contextopt)

Source:
Inherited From:
Mixes In:

Register event, event will only be triggered once and then removed

Parameters:
Name Type Attributes Description
name string
action function
context Object <optional>

# setParameter(name, value)

Source:
Inherited From:

Set parameter

Parameters:
Name Type Description
name string
value

# setParameters(obj)

Source:
Inherited From:

Set parameters

Parameters:
Name Type Description
obj Object

# success(action, contextopt)

Source:
Inherited From:
Mixes In:

Alias of on('success')

Parameters:
Name Type Attributes Description
action function
context Object <optional>

# trigger(name)

Source:
Inherited From:
Mixes In:

Trigger event

Parameters:
Name Type Description
name string