VariableHolder
[CreateAssetMenu(fileName = "New 3D Module Inputs", menuName = "Text Studio/3D/Modules/Module Inputs", order = 115)]public class VariableHolder : ScriptableObjectTyped variables shared by 3D modules on a text object.
Methods
Section titled “Methods”
TryGetFloat(string, out float)
Section titled “TryGetFloat(string, out float)”public bool TryGetFloat(string key, out float value)Tries to read a float input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
System.Single |
Returns
System.Boolean
TryGetInteger(string, out int)
Section titled “TryGetInteger(string, out int)”public bool TryGetInteger(string key, out int value)Tries to read an integer input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
System.Int32 |
Returns
System.Boolean
TryGetBoolean(string, out bool)
Section titled “TryGetBoolean(string, out bool)”public bool TryGetBoolean(string key, out bool value)Tries to read a Boolean input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
System.Boolean |
Returns
System.Boolean
TryGetString(string, out string)
Section titled “TryGetString(string, out string)”public bool TryGetString(string key, out string value)Tries to read a string input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
System.String |
Returns
System.Boolean
TryGetColor(string, out Color)
Section titled “TryGetColor(string, out Color)”public bool TryGetColor(string key, out Color value)Tries to read a color input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
UnityEngine.Color |
Returns
System.Boolean
TryGetVector(string, out Vector3)
Section titled “TryGetVector(string, out Vector3)”public bool TryGetVector(string key, out Vector3 value)Tries to read a vector input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
UnityEngine.Vector3 |
Returns
System.Boolean
TryGetCurve(string, out AnimationCurve)
Section titled “TryGetCurve(string, out AnimationCurve)”public bool TryGetCurve(string key, out AnimationCurve value)Tries to read a shared animation-curve input by case-insensitive key.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
UnityEngine.AnimationCurve |
Returns
System.Boolean
TryGetGradient(string, out Gradient)
Section titled “TryGetGradient(string, out Gradient)”public bool TryGetGradient(string key, out Gradient value)Tries to read a shared gradient input by case-insensitive key.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
UnityEngine.Gradient |
Returns
System.Boolean
TryGetObject(string, out Object)
Section titled “TryGetObject(string, out Object)”public bool TryGetObject(string key, out Object value)Tries to read a Unity object input by case-insensitive key without converting other value types.
Parameters
| Name | Type |
|---|---|
key |
System.String |
value |
UnityEngine.Object |
Returns
System.Boolean
HasDuplicateKeys(out string)
Section titled “HasDuplicateKeys(out string)”public bool HasDuplicateKeys(out string duplicateKey)Reports the first duplicate input key that would make an untyped lookup ambiguous.
Parameters
| Name | Type |
|---|---|
duplicateKey |
System.String |
Returns
System.Boolean
Constructors
Section titled “Constructors”
VariableHolder()
Section titled “VariableHolder()”public VariableHolder()Properties
Section titled “Properties”
Variables
Section titled “Variables”public IReadOnlyList<VariableHolder.Variable> Variables { get; }Returns
System.Collections.Generic.IReadOnlyList{TextStudio.ThreeD.VariableHolder.Variable}