Animate color of a sprite based on a chosen gradient.
Suggested use:
Change the color of a sprite using a gradient. Can be used to transition smoothly between colors, or flash a certain color temporarily.
Examples found in: Project 6
| Components | |||
|---|---|---|---|
| Property | Type | Description | Default Value | Component Properties |
| Gradient | Gradient | The gradient colors that will be displayed. | 255,255,255 | Renderer Properties |
| Modify Sprite Renderer | SpriteRenderer | SpriteRenderer to modify the color of. If left null, and this object has a SpriteRenderer component, assume owner. | None |
| Modify Text Mesh | TextMesh | TextMesh to modify the color of. If left null, and this object has a TextMesh component, assume owner. | None |
| Modify Image | Image | UI Image to modify the color of. If left null, and this object has an Image component, assume owner. | None |
| Modify Sprite Renderer | SpriteRenderer | "UI text to modify the color of. If left null, and this object has a text component, assume owner. | None |
| Mode | LPK_GradientAnimationPlayMode | What animation mode to use. | PLAY_ONCE |
| Never Restart | Boolean | If set, even if another event is received, the gradient will continue on as if nothing happened. | False |
| Duration | Float | How long is one animation cycle (in seconds). | 2 |
| Delay | Float | How long to wait until the animation begins. | 0 | Event Receiving Info |
| Event Trigger | LPK Event Object | Which event will trigger this component's action. | None | Gradient Color Animator Finished Event Sending Info |
| Event | LPK Event Object | Event to dispatch when conditions are met:
|
None |
| Event Sending Mode | LPK Event Sending Mode | Who receives the event sent info when input is given from the input device. OWNER = only send to components on the same game object. ALL = send to all game objects. TAGS = send to specified tags. | TAGS | Event Sending Mode - TAGS |
| Tags | Array of Tags | Which tags will receive this event. | 0 | Debug Properties |
| Print Debug Info | Boolean | Toggle console debug messages. | False |
| Label | String | Notes for the user about this component. This does nothing to the game or build. | None |