Default Attributes

Default Script, Value, and Name attributes.

DefaultScriptAttribute Class

Tags a class to be the default selection for this script project.

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)] public class DefaultScriptAttribute : Attributearrow-up-right

Member Details

DefaultScriptAttribute Constructor

Documentation for this section has not yet been entered.

Syntax

public DefaultScriptAttribute ()

Remarks

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Class

Set a default value to show in the script properties field.

Syntax

[System.AttributeUsage(System.AttributeTargets.Field)] public class DefaultValueAttribute : Attributearrow-up-right

Member Details

DefaultValueAttribute Constructor

Set a default bool value to show in the script properties for this field. Without the DefaultValue attribute bools default to 'false'.

Syntax

public DefaultValueAttribute (boolarrow-up-right value)

Parameters

value

The default boolvalue to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default byte value to show in the script properties for this field. Without the DefaultValue attribute bytes default to 0.

Syntax

public DefaultValueAttribute (bytearrow-up-right value)

Parameters

value

The default byte value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default double value to show in the script properties for this field. Without the DefaultValue attribute doubles default to 0.0.

Syntax

public DefaultValueAttribute (doublearrow-up-right value)

Parameters

value

The default double value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default double value to show in the script properties for this field. Without the DefaultValue attribute doubles default to 0.0.

Syntax

public DefaultValueAttribute (params doublearrow-up-right[] value)

Parameters

value

The default double value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default short value to show in the script properties for this field. Without the DefaultValue attribute shorts default to 0.

Syntax

public DefaultValueAttribute (shortarrow-up-right value)

Parameters

value

The default short value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default int value to show in the script properties for this field. Without the DefaultValue attribute ints default to 0.

Syntax

public DefaultValueAttribute (intarrow-up-right value)

Parameters

value

The default int value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default long value to show in the script properties for this field. Without the DefaultValue attribute longs default to 0.

Syntax

public DefaultValueAttribute (longarrow-up-right value)

Parameters

value

The default long value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default float value to show in the script properties for this field. Without the DefaultValue attribute floats default to 0.0.

Syntax

public DefaultValueAttribute (floatarrow-up-right value)

Parameters

value

The default float value to show in script properties.

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0


DefaultValueAttribute Constructor

Set a default string value to show in the script properties for this field. Without the DefaultValue attribute strings default to an empty string.

Syntax

public DefaultValueAttribute (stringarrow-up-right value)

Parameters

value

The default value in string form for strings, quaternions and vector fields.

Remarks

Example

C# Example

Requirements Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0

Have more questions? |

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 : Attributearrow-up-right

Member Details

DisplayNameAttribute Constructor

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

Syntax

public DisplayNameAttribute (stringarrow-up-right name)

Parameters

name

Remarks

Example

C# Example

|

Requirements

Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0



Last updated