Search Results for

    Show / Hide Table of Contents

    Class SerializeFieldAttribute

    Exports the annotated member as a property of the Godot Object.

    Inheritance
    object
    Attribute
    SerializeFieldAttribute
    Inherited Members
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Godot
    Assembly: TinkerFlow-Debug.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
    [Obsolete("TODO: Obsoletion trial. See if we can change all usages to Export and then remove it.")]
    public class SerializeFieldAttribute : Attribute

    Constructors

    SerializeFieldAttribute(Type, PropertyHint, string)

    Constructs a new ExportAttribute Instance.

    Declaration
    public SerializeFieldAttribute(Variant.Type variantType = Type.Nil, PropertyHint hint = PropertyHint.None, string hintString = "")
    Parameters
    Type Name Description
    Variant.Type variantType

    Variant Type

    PropertyHint hint

    The hint for the exported property.

    string hintString

    A string that may contain additional metadata for the hint.

    Properties

    Hint

    Optional hint that determines how the property should be handled by the editor.

    Declaration
    public PropertyHint Hint { get; }
    Property Value
    Type Description
    PropertyHint

    HintString

    Optional string that can contain additional metadata for the Godot.ExportAttribute.Hint.

    Declaration
    public string HintString { get; }
    Property Value
    Type Description
    string

    VariantType

    The Godot Variant type the annotated member is exported as.

    Declaration
    public Variant.Type VariantType { get; }
    Property Value
    Type Description
    Variant.Type

    Methods

    GetPropertyValue<T>(T)

    Enumerates property descriptors for every non-public field and property of T annotated with SerializeFieldAttribute.

    Declaration
    public static IEnumerable<Dictionary> GetPropertyValue<T>(T runtimeConfigurator)
    Parameters
    Type Name Description
    T runtimeConfigurator

    The runtime configurator instance whose members are inspected; not used by the implementation.

    Returns
    Type Description
    IEnumerable<Dictionary>

    The property descriptors for all serialized members of T.

    Type Parameters
    Name Description
    T

    The type whose serialized members are inspected.

    PropertyInfo(string, Type, PropertyHint, string)

    Builds a Godot property descriptor dictionary describing a single exported property.

    Declaration
    public static Dictionary PropertyInfo(string name, Variant.Type type, PropertyHint hint, string hintStr = "")
    Parameters
    Type Name Description
    string name

    The name of the property.

    Variant.Type type

    The Variant type of the property.

    PropertyHint hint

    The property hint controlling editor handling.

    string hintStr

    Optional additional metadata for the hint. Defaults to an empty string.

    Returns
    Type Description
    Dictionary

    A dictionary with name, type, hint and hint_string keys.

    In this article
    Back to top Generated by DocFX