封鎖 >變數 >allUsedVarModels
Variables.allUsedVarModels() 函式
找出工作區內所有使用的使用者建立變數。供產生器使用。如要取得工作區中所有變數的清單 (包括未使用的變數),請呼叫 Workspace.getAllVariables。
Signature:
export declare function allUsedVarModels(ws: Workspace): VariableModel[];
參數
傳回:
VariableModel[]
可變模型的陣列。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-22 (世界標準時間)。
[null,null,["上次更新時間:2024-08-22 (世界標準時間)。"],[[["The `allUsedVarModels` function identifies and returns an array of all user-created variables actively used within a specific Blockly workspace."],["This function is primarily intended for code generators and differs from `Workspace.getAllVariables` which retrieves all variables, including unused ones."],["It requires a workspace as input and outputs an array of VariableModel objects representing the used variables."]]],[]]