Default Attributes
Default Script, Value, and Name attributes.
Last updated
Default Script, Value, and Name attributes.
Last updated
Tags a class to be the default selection for this script project.
[System.AttributeUsage(System.AttributeTargets.Class)] public class DefaultScriptAttribute :
Documentation for this section has not yet been entered.
Syntaxpublic DefaultScriptAttribute ()
Remarks
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default value to show in the script properties field.
Set a default bool value to show in the script properties for this field. Without the DefaultValue attribute bools default to 'false'.
SyntaxParameters
value
The default boolvalue to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default byte value to show in the script properties for this field. Without the DefaultValue attribute bytes default to 0.
SyntaxParameters
value
The default byte value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default double value to show in the script properties for this field. Without the DefaultValue attribute doubles default to 0.0.
SyntaxParameters
value
The default double value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default double value to show in the script properties for this field. Without the DefaultValue attribute doubles default to 0.0.
SyntaxParameters
value
The default double value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default short value to show in the script properties for this field. Without the DefaultValue attribute shorts default to 0.
SyntaxParameters
value
The default short value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default int value to show in the script properties for this field. Without the DefaultValue attribute ints default to 0.
SyntaxParameters
value
The default int value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default long value to show in the script properties for this field. Without the DefaultValue attribute longs default to 0.
SyntaxParameters
value
The default long value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default float value to show in the script properties for this field. Without the DefaultValue attribute floats default to 0.0.
SyntaxParameters
value
The default float value to show in script properties.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Set a default string value to show in the script properties for this field. Without the DefaultValue attribute strings default to an empty string.
SyntaxParameters
value
The default value in string form for strings, quaternions and vector fields.
Remarks
Example
C# Example
Set the name to be shown in script properties for this field.
Set the name to be shown in script properties for this field.
SyntaxParameters
name
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
[System.AttributeUsage(System.AttributeTargets.Field)] public class DefaultValueAttribute :
public DefaultValueAttribute ( value)
public DefaultValueAttribute ( value)
public DefaultValueAttribute ( value)
public DefaultValueAttribute (params [] value)
public DefaultValueAttribute ( value)
public DefaultValueAttribute ( value)
public DefaultValueAttribute ( value)
public DefaultValueAttribute ( value)
public DefaultValueAttribute ( value)
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field)] public class DisplayNameAttribute :
public DisplayNameAttribute ( name)