TryGetValue(string,T)

Method in InMemoryVariableStorage

Summary

Retrieves a Yarn.Value by name.

public override bool TryGetValue<T>(string variableName, out T result)

Parameters

NameDescription

string variableName

The name of the variable to retrieve the value of. Don't forget to include the "$" at the beginning!

T result

Returns

The Yarn.Value . If a variable by the name of variableName is not present, returns a value representing null.

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.