文档

Unity Engine

Unity Engine

TryGetValue(string, out VariablesGroupAsset)

Returns true if a global variable group could be found with a matching name, or false if one could not.
阅读时间1 分钟最后更新于 1 个月前

Definition

TryGetValue(string, VariablesGroupAsset)

public bool TryGetValue(string name, out VariablesGroupAsset value)

Parameters

name

The name of the global variable group to find.

The found global variable group or
null
if one could not be found with a matching name.

Returns

Type

Description

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