blockly > Variables > allUsedVarModels

Variables.allUsedVarModels() function

Find all user-created variables that are in use in the workspace. For use by generators. To get a list of all variables on a workspace, including unused variables, call Workspace.getAllVariables.

Signature:

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

Parameters

Parameter Type Description
ws Workspace The workspace to search for variables.

Returns:

VariableModel[]

Array of variable models.