logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Global.Application.Attributes

    Classes

    FoundationIdReferenceAttribute

    The attribute's former home. It moved to Serenity.Global.Domain.Attributes so a domain entity can declare a reference without depending on the application layer; this derived type keeps code that still names it compiling and reading as the same declaration (an attribute lookup for the new type finds it).

    RequiredReferenceAttribute

    Marks a field as a required reference and declares what happens at runtime when it is left empty, so Inspector tooling can surface an appropriately alarming status instead of staying silent.
    Pure metadata with no Unity dependency; it has no effect at runtime — the annotated field keeps its ordinary behavior.
    Deliberately restricted to fields (unlike its sibling reference attributes) because it describes serialized Inspector fields, which are never properties or parameters.

    In this article
    © 2026 Serenity. All Rights Reserved