Skip to content

Class PropertyAttribute

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

A property or field that scripts, serialization and inspectors see. Read-only when it has no public setter.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = false)]
public sealed class PropertyAttribute : Attribute

Inheritance

object ← Attribute ← PropertyAttribute

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.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

Asset

The asset type that this uint component field names, such as model. A field with it is a (a handle that scenes save as an asset path and UID) and not a plain number. Only a uint field of a struct may have it.

public string? Asset { get; set; }

Property Value

string?

Category

The heading an inspector groups the property or component field under.

public string? Category { get; set; }

Property Value

string?

Hidden

An inspector does not show it (scripts and files still see it).

public bool Hidden { get; set; }

Property Value

bool

Max

The largest value an inspector's slider gives (NaN: no limit).

public double Max { get; set; }

Property Value

double

Min

The smallest value an inspector's slider or drag field gives (NaN: no limit). It does not stop a script or a file from setting a smaller one.

public double Min { get; set; }

Property Value

double

Name

The script name; the C# name in snake_case by default.

public string? Name { get; set; }

Property Value

string?

ReadOnly

An inspector shows it but does not let it be edited.

public bool ReadOnly { get; set; }

Property Value

bool

Step

How much one step of an inspector's drag field changes the value (NaN: the inspector's choice).

public double Step { get; set; }

Property Value

double