Skip to content

VariableHolder

ClassTextStudio.ThreeDTextStudio.3D
[CreateAssetMenu(fileName = "New 3D Module Inputs", menuName = "Text Studio/3D/Modules/Module Inputs", order = 115)]
public class VariableHolder : ScriptableObject

Typed variables shared by 3D modules on a text object.

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

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

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

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

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

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

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

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

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

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

public VariableHolder()

public IReadOnlyList<VariableHolder.Variable> Variables { get; }

Returns

System.Collections.Generic.IReadOnlyList{TextStudio.ThreeD.VariableHolder.Variable}