blockly > 工作區 > getAllVariables

Workspace.getAllVariables() 方法

v12:使用 Blockly.Workspace.getVariableMap().getAllVariables。

傳回所有類型的所有變數。

Signature:

getAllVariables(): IVariableModel<IVariableState>[];

退貨:

IVariableModel<IVariableState>[]

變數模型清單。