DisplayNameAttribute Class
Set the name to be shown in script properties for this field.
Syntax
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field)]
public class DisplayNameAttribute : Attribute
public class DisplayNameAttribute : Attribute
Remarks
By default the variable name is used, replacing underscores ('_') with spaces.
Requirements
Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
Members
See Also: Inherited members from Attribute.
Public Constructors
|
Set the name to be shown in script properties for this field. |
Member Details
DisplayNameAttribute Constructor
Set the name to be shown in script properties for this field.Syntax
public DisplayNameAttribute (string name)Parameters
- name
Remarks
By default the variable name is used, replacing underscores ('_') with spaces.Example
C# Example [DisplayName("")] public float namedFloat;Requirements
Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0
0 Comments