Endstar LUA API Documentation
Loading...
Searching...
No Matches
Visuals Class Reference

This class allows you to change visual aspects of an object, like rotation, color, etc. More...

Public Member Functions

void SetLocalPosition (Context instigator, string transformId, Vector3 position)
 Snap a visual transform to a position.
 
void SetLocalPosition (Context instigator, string transformId, Vector3 position, string callbackName)
 Snap a visual transform to a position.
 
void SetLocalPosition (Context instigator, string transformId, Vector3 position, float duration)
 Snap a visual transform to a position.
 
void SetLocalPosition (Context instigator, string transformId, Vector3 position, float duration, string callbackName)
 Snap a visual transform to a position.
 
void SetLocalPositionFromTo (Context instigator, string transformId, Vector3 positionOne, Vector3 positionTwo, float duration)
 Move a visual transform to a position over time.
 
void SetLocalPositionFromTo (Context instigator, string transformId, Vector3 positionOne, Vector3 positionTwo, float duration, string callbackName)
 Move a visual transform to a position over time.
 
void SetLocalRotation (Context instigator, string transformId, Vector3 rotation)
 Snap a visual transform's rotation.
 
void SetLocalRotation (Context instigator, string transformId, Vector3 rotation, string callbackName)
 Snap a visual transform's rotation, event fires on the rotation finishing.
 
void SetLocalRotation (Context instigator, string transformId, Vector3 rotation, float duration)
 Change a visual transform's rotation over time.
 
void SetLocalRotation (Context instigator, string transformId, Vector3 rotation, float duration, string callbackName)
 Change a visual transform's rotation over time, event fires on the rotation finishing.
 
void SetLocalRotationFromTo (Context instigator, string transformId, Vector3 positionOne, Vector3 positionTwo, float duration)
 Change a visual transform's rotation over time between two pre-determined positions.
 
void SetLocalRotationFromTo (Context instigator, string transformId, Vector3 positionOne, Vector3 positionTwo, float duration, string callbackName)
 Change a visual transform's rotation over time between two pre-determined positions, event fires on the rotation finishing.
 
void SetContinousRotation (Context instigator, string transformId, Vector3 rotationRate)
 Sets a visual transform's continuous rotation speed.
 
void StopContinousRotation (Context instigator, string transformId)
 Stop a visual transform's continus rotation.
 
void SetEmissiveColor (Context instigator, string transformId, Color emissiveColor)
 Sets emissive color of all materials on a visual transform.
 
void SetAlbedoColor (Context instigator, string transformId, Color albedoColor)
 Sets albedo color of all materials on a visual transform.
 
void SetEnabled (Context instigator, string transformId, bool enabled)
 Sets the transform's Enabled status.
 

Detailed Description

This class allows you to change visual aspects of an object, like rotation, color, etc.

Member Function Documentation

◆ SetAlbedoColor()

void SetAlbedoColor ( Context instigator,
string transformId,
Color albedoColor )

Sets albedo color of all materials on a visual transform.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
albedoColorColor to set albedo value to. (Example: Color.White)

◆ SetContinousRotation()

void SetContinousRotation ( Context instigator,
string transformId,
Vector3 rotationRate )

Sets a visual transform's continuous rotation speed.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
rotationRateThe degrees per second of rotation for each axis. (Example: Vector:Create(90, 0, 0))

◆ SetEmissiveColor()

void SetEmissiveColor ( Context instigator,
string transformId,
Color emissiveColor )

Sets emissive color of all materials on a visual transform.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
emissiveColorColor to set emissive value to. (Example: Color.White)

◆ SetEnabled()

void SetEnabled ( Context instigator,
string transformId,
bool enabled )

Sets the transform's Enabled status.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
enabledBool to set enabled value to. (Example: True)

◆ SetLocalPosition() [1/4]

void SetLocalPosition ( Context instigator,
string transformId,
Vector3 position )

Snap a visual transform to a position.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionThe local position to move to.

◆ SetLocalPosition() [2/4]

void SetLocalPosition ( Context instigator,
string transformId,
Vector3 position,
float duration )

Snap a visual transform to a position.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionThe local position to move to.
durationThe duration of this movement.

◆ SetLocalPosition() [3/4]

void SetLocalPosition ( Context instigator,
string transformId,
Vector3 position,
float duration,
string callbackName )

Snap a visual transform to a position.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionThe local position to move to.
durationThe duration of this movement.
callbackNameThe lua function name to call when the movement is finished

◆ SetLocalPosition() [4/4]

void SetLocalPosition ( Context instigator,
string transformId,
Vector3 position,
string callbackName )

Snap a visual transform to a position.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionThe local position to move to.
callbackNameThe lua function name to call when the movement is finished

◆ SetLocalPositionFromTo() [1/2]

void SetLocalPositionFromTo ( Context instigator,
string transformId,
Vector3 positionOne,
Vector3 positionTwo,
float duration )

Move a visual transform to a position over time.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionOneThe local position to move from.
positionTwoThe local position to move to.
durationThe duration of this movement.

◆ SetLocalPositionFromTo() [2/2]

void SetLocalPositionFromTo ( Context instigator,
string transformId,
Vector3 positionOne,
Vector3 positionTwo,
float duration,
string callbackName )

Move a visual transform to a position over time.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionOneThe local position to move from.
positionTwoThe local position to move to.
durationThe duration of this movement.
callbackNameThe lua function name to call when the movement is finished

◆ SetLocalRotation() [1/4]

void SetLocalRotation ( Context instigator,
string transformId,
Vector3 rotation )

Snap a visual transform's rotation.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
rotationThe local rotation to snap to.

◆ SetLocalRotation() [2/4]

void SetLocalRotation ( Context instigator,
string transformId,
Vector3 rotation,
float duration )

Change a visual transform's rotation over time.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
rotationThe local rotation to move to.
durationThe duration of this movement.

◆ SetLocalRotation() [3/4]

void SetLocalRotation ( Context instigator,
string transformId,
Vector3 rotation,
float duration,
string callbackName )

Change a visual transform's rotation over time, event fires on the rotation finishing.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
rotationThe local rotation to move to.
durationThe duration of this movement.
callbackNameLua function name to call when rotation has finished.

◆ SetLocalRotation() [4/4]

void SetLocalRotation ( Context instigator,
string transformId,
Vector3 rotation,
string callbackName )

Snap a visual transform's rotation, event fires on the rotation finishing.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
rotationThe local rotation to snap to.
callbackNameLua function name to call when rotation has finished.

◆ SetLocalRotationFromTo() [1/2]

void SetLocalRotationFromTo ( Context instigator,
string transformId,
Vector3 positionOne,
Vector3 positionTwo,
float duration )

Change a visual transform's rotation over time between two pre-determined positions.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionOneThe local rotation to start from.
positionTwoThe local rotation to move to.
durationThe duration of this movement.

◆ SetLocalRotationFromTo() [2/2]

void SetLocalRotationFromTo ( Context instigator,
string transformId,
Vector3 positionOne,
Vector3 positionTwo,
float duration,
string callbackName )

Change a visual transform's rotation over time between two pre-determined positions, event fires on the rotation finishing.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)
positionOneThe local rotation to start from.
positionTwoThe local rotation to move to.
durationThe duration of this movement.
callbackNameLua function name to call when rotation has finished.

◆ StopContinousRotation()

void StopContinousRotation ( Context instigator,
string transformId )

Stop a visual transform's continus rotation.

Parameters
instigatorThe source context of this change.
transformIdTransform ID. (Example: Transforms.Base)