Skip to content

TrackController

Tempestissiman edited this page Jul 26, 2022 · 1 revision

Descriptions

Controller for the main track.

Remarks

Inherited from SpriteController

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
translationX ValueChannel The sprite's position
translationY ValueChannel The sprite's position
translationZ ValueChannel The sprite's position
rotationX ValueChannel The sprite's rotation
rotationY ValueChannel The sprite's rotation
rotationZ ValueChannel The sprite's rotation
scaleX ValueChannel The sprite's scaling
scaleY ValueChannel The sprite's scaling
scaleZ ValueChannel The sprite's scaling
colorR ValueChannel The sprite's color
colorG ValueChannel The sprite's color
colorB ValueChannel The sprite's color
colorA ValueChannel The sprite's color
colorH ValueChannel Hue shift modification of the color
colorS ValueChannel Saturation modification of the color
colorV ValueChannel Brightness modification of the color
textureOffsetX ValueChannel The sprite's texture offset
textureOffsetY ValueChannel The sprite's texture offset
textureScaleX ValueChannel The sprite's texture scaling
textureScaleY ValueChannel The sprite's texture scaling
layer StringChannel The sprite's sorting layer name
sort ValueChannel The sprite's sorting order within a layer
divideLine01 SpriteController Reference to the track's divide line
divideLine12 SpriteController Reference to the track's divide line
divideLine23 SpriteController Reference to the track's divide line
divideLine34 SpriteController Reference to the track's divide line
divideLine45 SpriteController Reference to the track's divide line
divideLines Table of SpriteController Reference to all of the track's divide line
criticalLine0 SpriteController Reference to the track's critical line
criticalLine1 SpriteController Reference to the track's critical line
criticalLine2 SpriteController Reference to the track's critical line
criticalLine3 SpriteController Reference to the track's critical line
criticalLine4 SpriteController Reference to the track's critical line
criticalLine5 SpriteController Reference to the track's critical line
criticalLines Table of SpriteController Reference to all of the track's critical line
extraL SpriteController Reference to the track's extra lane
extraR SpriteController Reference to the track's extra lane
edgeExtraL SpriteController Reference to the track's extra lane's edge
edgeExtraR SpriteController Reference to the track's extra lane's edge

Remarks

textureOffsetX, textureOffsetY, textureScaleX, textureScaleY properties are shared among all objects using the same material instance. Use isNewMaterialInstance = true when creating them to avoid this.

Methods


copy(isNewMaterialInstance = false)

Description

Create a copy of this controller, along with all of its chilren.

Parameters

Name Type Description
isNewMaterialInstance bool Whether or not to create a new material instance

Return types

TrackController

Remarks

_

setSprite(name)

Description

Set the skin of the track.

Parameters

Name Type Description
name string The name of the track skin (case insensitive)

Return types

TrackController

Remarks

_


getChildren()

Descriptions

Return all controllers parented to this controller.

Parameters

_

Return types

Table of Controller

Remarks

_


setParent(controller)

Descriptions

Set the parent to another controller.

Parameters

Name Type Description
controller Controller The controller to parent to

Return types

nil

Remarks

_

Clone this wiki locally