blockly > 変数 > allUsedVarModels

Variables.allUsedVarModels() 関数

ワークスペースで使用されている、ユーザーが作成したすべての変数を検索します。ジェネレータ向けです。ワークスペース上のすべての変数(未使用の変数を含む)のリストを取得するには、Workspace.getAllVariables を呼び出します。

署名:

export declare function allUsedVarModels(ws: Workspace): VariableModel[];

パラメータ

パラメータ 種類 説明
ws Google Workspace 変数を検索するためのワークスペース。

戻り値:

VariableModel[]

変数モデルの配列。