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, float duration)
 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 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 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.
 

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)

◆ 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)

◆ SetLocalPosition() [1/2]

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/2]

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.

◆ SetLocalPositionFromTo()

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.

◆ 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.