Skip to content

Controller

Tempestissiman edited this page Jul 26, 2022 · 2 revisions

Descriptions

The base class for all controllers.

Remarks

All other types of controller will have properties and methods of this class.

Properties


Name Type Description
isPersistent bool Whether or not this controller is persistent
active ValueChannel Value 1 means object is enabled, 0 means object is disabled

Methods


getChildren()

Descriptions

Return all controllers parented to this controller.

Parameters

_

Return types

Table of Controller

Remarks

_

Example

local trackChildren = Scene.track.getChildren()
for i, channel in ipairs(trackChildren) do
    channel.colorA = Channel.constant(0)
end

setParent(controller)

Descriptions

Set the parent to another controller.

Parameters

Name Type Description
controller Controller The controller to parent to

Return types

nil

Remarks

_

Example

local canvas = Scene.createCanvas()
local text = Scene.createText()
text.setParent(canvas)

Clone this wiki locally