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 SetLocalPositionFromTo (Context instigator, string transformId, Vector3 positionOne, Vector3 positionTwo, float duration)
 Move a visual transform to a position over time.
 
void SetLocalRotationFromTo (Context instigator, string transformId, Vector3 positionOne, Vector3 positionTwo, float duration)
 Change a visual transform's rotation over time.
 
void SetLocalRotation (Context instigator, string transformId, Vector3 rotation)
 Snap a visual transform's rotation.
 
void SetEmissiveColor (Context instigator, string transformId, Color emissiveColor)
 Sets emissive 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

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

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.

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

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.

◆ SetLocalRotationFromTo()

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

Change a visual transform's rotation over time.

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.