ドキュメント

Unity Engine

Unity Engine

RemoveVariable(IVariable, bool)

Removes a variable from the Graph.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool RemoveVariable(IVariable variable, bool forceRemove = false)

Parameters

variable

The variable to remove. Must belong to this graph.

forceRemove

If true, removes the variable and all variable nodes referencing it. If false, removal fails if nodes exist.

Returns

Type

Description

boolTrue if the variable was removed; otherwise false.

Remarks

Enclose this method with Graph.UndoBeginRecordGraph and Graph.UndoEndRecordGraph to add this operation to the undo stack and to update the graph view with the changes.