Skip to content

Get Sansar

Script API

DisplayNameAttribute

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Script Inherits Attribute

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

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field)]
public class DisplayNameAttribute : Attribute

Remarks

By default the variable name is used, replacing underscores (’_’) with spaces.

Members at a glance

KindMembers
ConstructorsDisplayNameAttribute

Constructors

DisplayNameAttribute

public DisplayNameAttribute(string name)

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

ParameterTypeDescription
namestring
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.