Skip to main content

Struct ScriptableVariableInfo

Serializable data container used to extract and represent information from a scriptable variable.

[Serializable]
public struct ScriptableVariableInfo

Remarks​

This structure is designed for runtime data collection and serialization (e.g., JSON export). It captures the name and current value of a scripable variable.

Constructors​

ScriptableVariableInfo(BaseScriptableVariable)​

Constructs a ScriptableVariableInfo from a valid scriptable variable instance.

public ScriptableVariableInfo(BaseScriptableVariable variable)

Parameters​

NameTypeDescription
variableBaseScriptableVariableThe scriptable variable to extract information from.

Exceptions​

Exception — Thrown if the variable is not valid (e.g., null or contains invalid data).

Fields​

name​

The name of the scriptable variable.

public string name

Field Value​

string

value​

The runtime value of the scriptable variable.

public object value

Field Value​

object