Skip to content

MeshController

Tempestissiman edited this page Jul 26, 2022 · 1 revision

Descriptions

Controller for a 3D object.

Remarks

Inherited from Controller

3D objects are imported from an external .obj file with Scene.createMesh

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 mesh's position
translationY ValueChannel The mesh's position
translationZ ValueChannel The mesh's position
rotationX ValueChannel The mesh's rotation
rotationY ValueChannel The mesh's rotation
rotationZ ValueChannel The mesh's rotation
scaleX ValueChannel The mesh's scaling
scaleY ValueChannel The mesh's scaling
scaleZ ValueChannel The mesh's scaling
colorR ValueChannel The mesh's color
colorG ValueChannel The mesh's color
colorB ValueChannel The mesh's color
colorA ValueChannel The mesh'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 mesh's texture offset
textureOffsetY ValueChannel The mesh's texture offset
textureScaleX ValueChannel The mesh's texture scaling
textureScaleY ValueChannel The mesh's texture scaling
layer StringChannel The mesh's sorting layer name
sort ValueChannel The mesh's sorting order within a layer

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

MeshController

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