|
Endstar LUA API Documentation
|
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. | |
This class allows you to change visual aspects of an object, like rotation, color, etc.
Sets albedo color of all materials on a visual transform.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| albedoColor | Color to set albedo value to. (Example: Color.White) |
Sets a visual transform's continuous rotation speed.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| rotationRate | The degrees per second of rotation for each axis. (Example: Vector:Create(90, 0, 0)) |
Sets emissive color of all materials on a visual transform.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| emissiveColor | Color to set emissive value to. (Example: Color.White) |
| void SetEnabled | ( | Context | instigator, |
| string | transformId, | ||
| bool | enabled ) |
Sets the transform's Enabled status.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| enabled | Bool to set enabled value to. (Example: True) |
Snap a visual transform to a position.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| position | The local position to move to. |
Snap a visual transform to a position.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| position | The local position to move to. |
| duration | The duration of this movement. |
| void SetLocalPosition | ( | Context | instigator, |
| string | transformId, | ||
| Vector3 | position, | ||
| float | duration, | ||
| string | callbackName ) |
Snap a visual transform to a position.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| position | The local position to move to. |
| duration | The duration of this movement. |
| callbackName | The lua function name to call when the movement is finished |
| void SetLocalPosition | ( | Context | instigator, |
| string | transformId, | ||
| Vector3 | position, | ||
| string | callbackName ) |
Snap a visual transform to a position.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| position | The local position to move to. |
| callbackName | The lua function name to call when the movement is finished |
| void SetLocalPositionFromTo | ( | Context | instigator, |
| string | transformId, | ||
| Vector3 | positionOne, | ||
| Vector3 | positionTwo, | ||
| float | duration ) |
Move a visual transform to a position over time.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| positionOne | The local position to move from. |
| positionTwo | The local position to move to. |
| duration | The duration of this movement. |
| void SetLocalPositionFromTo | ( | Context | instigator, |
| string | transformId, | ||
| Vector3 | positionOne, | ||
| Vector3 | positionTwo, | ||
| float | duration, | ||
| string | callbackName ) |
Move a visual transform to a position over time.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| positionOne | The local position to move from. |
| positionTwo | The local position to move to. |
| duration | The duration of this movement. |
| callbackName | The lua function name to call when the movement is finished |
Snap a visual transform's rotation.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| rotation | The local rotation to snap to. |
Change a visual transform's rotation over time.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| rotation | The local rotation to move to. |
| duration | The duration of this movement. |
| 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.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| rotation | The local rotation to move to. |
| duration | The duration of this movement. |
| callbackName | Lua function name to call when rotation has finished. |
| void SetLocalRotation | ( | Context | instigator, |
| string | transformId, | ||
| Vector3 | rotation, | ||
| string | callbackName ) |
Snap a visual transform's rotation, event fires on the rotation finishing.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| rotation | The local rotation to snap to. |
| callbackName | Lua function name to call when rotation has finished. |
| 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.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| positionOne | The local rotation to start from. |
| positionTwo | The local rotation to move to. |
| duration | The duration of this movement. |
| 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.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |
| positionOne | The local rotation to start from. |
| positionTwo | The local rotation to move to. |
| duration | The duration of this movement. |
| callbackName | Lua function name to call when rotation has finished. |
| void StopContinousRotation | ( | Context | instigator, |
| string | transformId ) |
Stop a visual transform's continus rotation.
| instigator | The source context of this change. |
| transformId | Transform ID. (Example: Transforms.Base) |