Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetValue(string, out IVariable)

Gets the variable with the matching key if one exists.
Read time 1 minuteLast updated 8 days ago

Definition

TryGetValue(string, IVariable)

bool TryGetValue(string key, out IVariable value)

Parameters

The variable key or name to match.

The found variable or
null
if one could not be found.

Returns

Type

Description

bool
true
if a variable could be found or
false
if one could not.