StreamingButton
A class in Root.Township, Alta.ScreenshotCamera.
Hand camera button whose light blinks while the camera is streaming. Client only.
- Listed in Customization and screenshots
- Inherits or implements
CameraButton
Constructors
| Member | What it is |
|---|---|
StreamingButton() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
9 private and internal fields
| Member | What it is |
|---|---|
private static readonly int _Emission | Shader property ID for _Emission. |
private Color activeColor | Light colour for the on half of a blink. |
private Color idleColor | Light colour when not streaming, and for the off half of a blink. |
private bool isActive | Whether the light is in its on state. |
private Material material | The light's own material copy. |
private float nextChange | Real time at which the light next flips. |
private Renderer pip | The renderer of the light. |
private float pipTime | Seconds between blinks. |
private IUnityUpdateMethod update | The registered blink update, or null when not streaming. |
Methods
| Member | What it is |
|---|---|
protected override void Awake() | Client: makes a material copy for the light and sets it to the idle colour. |
protected override void UpdateSettings(HandCamera handCamera) | Starts the blinking when the camera starts streaming and stops it, back to idle, when it stops. |