Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Remove

Removes a variable with the specified name.
Read time 1 minuteLast updated 10 days ago

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.