LedDefectProfile
[CreateAssetMenu(fileName = "NewDefectProfile", menuName = "LED Studio/Defect Profile", order = 4)]public sealed class LedDefectProfile : ScriptableObjectReusable authored collection of LED defects that can be layered onto a board at runtime.
Fields
Section titled “Fields”
[Header("Global Settings")][Tooltip("Master seed for procedural defect generation")]public int SeedReturns
System.Int32
GlobalIntensityMultiplier
Section titled “GlobalIntensityMultiplier”[Tooltip("Global intensity multiplier applied to all defect entries")][Range(0, 2)]public float GlobalIntensityMultiplierReturns
System.Single
Entries
Section titled “Entries”[Header("Defect Entries")]public List<LedDefectEntry> EntriesReturns
System.Collections.Generic.List{LEDStudio.LedDefectEntry}
ImportedMask
Section titled “ImportedMask”[Header("Presets")][Tooltip("Optional imported defect mask texture (R=severity, G=mode, B=aux, A=timing)")]public Texture2D ImportedMaskReturns
UnityEngine.Texture2D
Methods
Section titled “Methods”
EffectiveSeed(int)
Section titled “EffectiveSeed(int)”public int EffectiveSeed(int boardInstanceId)Combines the profile seed with a board instance ID so repeated profiles produce stable but distinct defect layouts.
Parameters
| Name | Type |
|---|---|
boardInstanceId |
System.Int32 |
Returns
System.Int32
CreateNewBoard()
Section titled “CreateNewBoard()”public static LedDefectProfile CreateNewBoard()Creates a transient defect profile with all wear disabled for a clean, new-board appearance.
Returns
LEDStudio.LedDefectProfile
CreateLightWear(int)
Section titled “CreateLightWear(int)”public static LedDefectProfile CreateLightWear(int seed = 18421)Creates a transient profile with sparse dim, color-shifted, and flickering emitters.
Parameters
| Name | Type | Description |
|---|---|---|
seed |
System.Int32 | Deterministic seed for selecting affected emitters. |
Returns
LEDStudio.LedDefectProfile
CreateHeavyDamage(int)
Section titled “CreateHeavyDamage(int)”public static LedDefectProfile CreateHeavyDamage(int seed = 90712)Creates a transient profile with visibly dead, stuck, dim, and unstable emitters.
Parameters
| Name | Type | Description |
|---|---|---|
seed |
System.Int32 | Deterministic seed for selecting affected emitters. |
Returns
LEDStudio.LedDefectProfile
Constructors
Section titled “Constructors”
LedDefectProfile()
Section titled “LedDefectProfile()”public LedDefectProfile()