Class HudElementThresholdDefaultsTests
EditMode tests for UnityHudElementDefinition's threshold ramp on a legacy element, mirroring HudElementChangeFeedbackDefaultsTests: an element that predates this feature must read as fully off — no bands, ratio mode off — with no manual migration step. The band list is what these tests force unset; the ramp field itself cannot be nulled through the SerializedProperty API, and the accessors are null-safe at both levels regardless.
Inherited Members
Namespace: Serenity.GameUi.Tests.Editor.Builder
Assembly: Serenity.GameUi.Tests.Editor.dll
Syntax
public class HudElementThresholdDefaultsTests
Constructors
HudElementThresholdDefaultsTests()
Declaration
public HudElementThresholdDefaultsTests()
Methods
TearDown()
Declaration
public void TearDown()
ThresholdRamp_ANewlyCreatedElement_HasNoBandsAndRatioOff()
Declaration
public void ThresholdRamp_ANewlyCreatedElement_HasNoBandsAndRatioOff()
ThresholdRamp_DeserializedWithNoBandsAuthored_ExposesAnEmptyRamp()
Declaration
public void ThresholdRamp_DeserializedWithNoBandsAuthored_ExposesAnEmptyRamp()