Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetValue(string, out IVariable)

Gets the IVariable with the specified name.
Read time 1 minuteLast updated 13 days ago

Definition

TryGetValue(string, IVariable)

public bool TryGetValue(string name, out IVariable value)

Parameters

name

The name of the variable.

The variable that was found or
default
.

Returns

Type

Description

bool
true
if a variable was found and
false
if one could not.