Set the name to be shown in script properties for this field.
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field)]public class DisplayNameAttribute : AttributeRemarks
By default the variable name is used, replacing underscores (’_’) with spaces.
Members at a glance
| Kind | Members |
|---|---|
| Constructors | DisplayNameAttribute |
Constructors
DisplayNameAttribute
public DisplayNameAttribute(string name)Set the name to be shown in script properties for this field.
| Parameter | Type | Description |
|---|---|---|
name | string |
Remarks
By default the variable name is used, replacing underscores (’_’) with spaces.
Example
[DisplayName("")]public float namedFloat;Generated from the Sansar 47.10.0 client ScriptApi snapshot.