Blink
Class in Zigurous.Animation
Declaration
public sealed class Blink : MonoBehaviour
Description
Switches an object's material on and off at a variable rate.
Properties
renderer | A reference to the main blinking object's renderer (Read only). |
sharedRenderers | An array of other renderers whos material will be changed to match the blinking object. |
blinkingMaterial | The material applied to the object when blinking. |
notBlinkingMaterial | The material applied to the object when not blinking. |
blinkChance | The random chance that the object will blink. |
blinkDuration | The amount of seconds the material stays blinking. |
blinkCooldown | The amount of seconds before the material can blink a subsequent time. |
updateInterval | How frequently in seconds the script will execute as a way to optimize the code performance. |
nextUpdateTime | The time the next update will be performed (Read only). |
blinking | Whether the object is currently blinking (Read only). |
cooldown | Whether the blinking is currently on cooldown (Read only). |
Methods
BlinkOnce | Blinks the material for one cycle. |