LedDefectProfile
public sealed class LedDefectProfile : ScriptableObjectReusable authored collection of LED defects that can be layered onto a board at runtime.
Fields
Section titled “Fields”
public int SeedReturns
System.Int32
GlobalIntensityMultiplier
Section titled “GlobalIntensityMultiplier”public float GlobalIntensityMultiplierReturns
System.Single
Entries
Section titled “Entries”public List<LedDefectEntry> EntriesReturns
System.Collections.Generic.List{LEDStudio.LedDefectEntry}
ImportedMask
Section titled “ImportedMask”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()