ShaderParamDef.DisplayName operator

Introduced

v9.0 (2011)

Description

Returns or sets the short name for this parameter definition as a String. This is the name that appears in the Scene Explorer (with the View > Use Script Names option turned OFF). It is also the same value that the SIObject.Name property returns on the instance (ShaderParameter).

To set this value, you must call the ShaderParamDefOptions.SetShortName method before adding the parameter definition to the shader definition. Subsequently you can change this value by assigning a string to ShaderParamDef.DisplayName.

C# Syntax

// get accessor
String rtn = ShaderParamDef.DisplayName;
// set accessor
ShaderParamDef.DisplayName = String;

See Also

ShaderParamDefOptions.SetShortName SIObject.Name