Class PropertyAttribute
Allows attaching an attribute to a property which controls various aspects on how it will look when shown via the inspector.
Inheritance
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class PropertyAttribute : Attribute
Constructors
| Improve this Doc View SourcePropertyAttribute()
Declaration
public PropertyAttribute()
Properties
| Improve this Doc View SourceBrowsable
Gets or sets a value indicating whether this PropertyAttribute will be visible in the inspector.
Declaration
public bool Browsable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Category
Gets or sets the category (this will override the component name, if part of a component, or the "General" category for all other properties).
Declaration
public string Category { get; set; }
Property Value
Type | Description |
---|---|
System.String | The category. |
CategoryExpand
Gets or sets whether to expand the category automatically when opening the inspector (this should match between all the properties in the category for accurate results).
Declaration
public bool CategoryExpand { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Expand Category? |
CategoryZ
Gets or sets the category's z index for sorting in the inspector (this should match between all the properties in the category for accurate results).
Declaration
public int CategoryZ { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The category z. |
Description
Gets or sets the description (this will override the xml docs on the property if set).
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | The description. |
DisplayName
Gets or sets the display name (this will override the property name if set).
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The display name. |
ForceReadonly
Forces the property to be shown as readonly in the inspector (even if it can be set by script).
Declaration
public bool ForceReadonly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|