文档

Unity Engine

Unity Engine

Remove

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

Definition

Remove(string)

Removes a variable with the specified name.
public bool Remove(string name)

Parameters

name

Name of the variable to remove.

Returns

Type

Description

bool
true
if a variable with the specified name was removed,
false
if one was not.

Remove(KeyValuePair<string, IVariable>)

Removes a variable with the specified key.
public bool Remove(KeyValuePair<string, IVariable> item)

Parameters

The item to be removed, only the Key field will be considered.

Returns

Type

Description

bool
true
if a variable with the specified name was removed,
false
if one was not.