LedBoardFaultController
[AddComponentMenu("LED Studio/LED Board Fault Controller")]public sealed class LedBoardFaultController : MonoBehaviourConvenience MonoBehaviour for applying a defect profile to a board at startup. Provides simple severity and toggle controls for designers and gameplay scripts.
Methods
Section titled “Methods”
SetWornBoardLook(float)
Section titled “SetWornBoardLook(float)”public void SetWornBoardLook(float severity)Applies the startup defect profile at the requested severity to simulate a uniformly worn board.
Parameters
| Name | Type | Description |
|---|---|---|
severity |
System.Single | Defect intensity forwarded to the bound board runtime. |
Remarks
The request is ignored until both a board runtime and startup profile are available.
ToggleFaults(bool)
Section titled “ToggleFaults(bool)”public void ToggleFaults(bool value)Enables or disables defect rendering on the bound board without changing its configured profile.
Parameters
| Name | Type |
|---|---|
value |
System.Boolean |
Remarks
The request is ignored until a board runtime is available.
Constructors
Section titled “Constructors”
LedBoardFaultController()
Section titled “LedBoardFaultController()”public LedBoardFaultController()