DisplayNameAttribute

DisplayNameAttribute Class

Set the name to be shown in script properties for this field.

Syntax

[System.AttributeUsage(System.AttributeTargets.Field)]
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

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


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.