logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FoundationIdReferenceAttribute

    Marks a string field, property or parameter as holding the Id of an IFoundationSettings definition of a given type, so Inspector tooling can offer a dropdown of the existing definition ids instead of free text.
    Pure metadata with no Unity dependency; it has no effect at runtime — the annotated value remains an ordinary string.

    Inheritance
    object
    Attribute
    FoundationIdReferenceAttribute
    Implements
    _Attribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Global.Application.Attributes
    Assembly: Serenity.Global.Application.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
    public sealed class FoundationIdReferenceAttribute : Attribute, _Attribute

    Constructors

    FoundationIdReferenceAttribute(Type)

    Creates the attribute targeting the given definition type.

    Declaration
    public FoundationIdReferenceAttribute(Type definitionType)
    Parameters
    Type Name Description
    Type definitionType

    The IFoundationSettings-derived type to source ids from.

    Properties

    DefinitionType

    The definition type whose instances' ids are valid values — typically an IFoundationSettings-derived interface (e.g. IAudioPlayerSettings). Editor tooling lists the ids of all assets assignable to this type.

    Declaration
    public Type DefinitionType { get; }
    Property Value
    Type Description
    Type

    Implements

    _Attribute
    In this article
    © 2026 Serenity. All Rights Reserved