logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Global.Domain.Attributes

    Classes

    AssetPathReferenceAttribute

    Marks a string field, property or parameter as holding the runtime path/key/address of a Unity asset of a given type, so Inspector tooling can offer an asset object field (drag-and-drop) instead of free text and store the resolved path.
    The asset type is named as a string (e.g. "UnityEngine.AudioClip") so this attribute carries no Unity dependency and can be applied in the Domain layer without violating its boundaries. It is pure metadata with no runtime effect — the annotated value remains an ordinary string.

    FloatRangeAttribute

    Declares the valid numeric range of a float field, property or parameter, plus optional display hints for Inspector tooling (render as a percentage slider, and/or show a reset button).
    The range is a domain-meaningful value constraint; the display flags are pure authoring conveniences. No Unity dependency, so it can be applied in the Domain layer.

    In this article
    © 2026 Serenity. All Rights Reserved