logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    HudElementThresholdDefaultsTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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()
    In this article
    © 2026 Serenity. All Rights Reserved