文档

Unity Engine

Unity Engine

TryGetValue(string, out IVariable)

Gets the IVariable with the specified name.
阅读时间1 分钟最后更新于 1 个月前

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.