Studio

顯示已棄用項目

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡

無法建立
服務
未複製

Studio 物件是一個僅限於 Roblox Studio 的設定物件。 它 可以在 Roblox Studio 的設定中於 Studio 標籤下找到。

概要

屬性

活動

屬性

"TODO" Color

未複製
平行讀取

"function" Color

未複製
平行讀取

"local" Color

未複製
平行讀取

"nil" Color

未複製
平行讀取

"self" Color

未複製
平行讀取

ActionOnAutoResumeSync

Roblox 指令碼安全性
平行讀取

ActionOnStopSync

平行讀取

Active Color

平行讀取

Active Hover Over Color

平行讀取

Always Save Script Changes

平行讀取

如果設為 true,Roblox Studio 會嘗試將在 Play Solo 會話中進行的腳本更改傳輸到打開的地方。

Animate Hover Over

平行讀取

如果設為 true,當滑鼠懸停在可選擇的物件上時,在 Workspace 中顯示的懸停選擇框將根據 Hover Animate SpeedHover Over ColorSelect Color 之間閃爍。

Auto Clean Empty Line

平行讀取

Auto Closing Brackets

平行讀取

Auto Closing Quotes

平行讀取

Auto Delete Closing Brackets and Quotes

平行讀取

Auto Indent Rule

平行讀取

Auto-Recovery Enabled

平行讀取

Auto-Recovery Interval (Minutes)

平行讀取

AutoResumeSyncOnPlaceOpen

Roblox 安全性
平行讀取

AutocompleteAcceptanceBehavior

Roblox 指令碼安全性
平行讀取

Automatically trigger AI Code Completion

Roblox 指令碼安全性
平行讀取

Background Color

未複製
平行讀取

指定 Roblox Studio 腳本編輯器的背景顏色。

Basic Objects Display Mode

平行讀取

設置 Roblox Studio 中 Advanced Objects 標籤的滾動模式。

Bool Color

未複製
平行讀取

Bracket Color

未複製
平行讀取

Built-in Function Color

未複製
平行讀取

設置腳本編輯器中內置函數和關鍵字的顏色。

Camera Mouse Wheel Speed

平行讀取

設置使用滑鼠滾輪時相機前進或後退的步驟數。

Camera Pan Speed

Roblox 指令碼安全性
平行讀取

Camera Shift Speed

平行讀取

設置在持住 Shift 鍵和移動鍵時,相機移動的速度(步數/秒)。

Camera Speed

平行讀取

設置在按下移動鍵時,相機移動的速度(步數/秒)。

Camera Speed Adjust Binding

平行讀取

Camera Zoom to Mouse Position

平行讀取

CameraAdaptiveSpeed

Roblox 指令碼安全性
平行讀取

CameraOrbitSensitivity

Roblox 指令碼安全性
平行讀取

CameraPanSensitivity

Roblox 指令碼安全性
平行讀取

CameraShiftFactor

Roblox 指令碼安全性
平行讀取

CameraSpeedLockDefault

Roblox 指令碼安全性
平行讀取

CameraTweenFocus

Roblox 指令碼安全性
平行讀取

CameraZoomSpeed

Roblox 指令碼安全性
平行讀取

Clear Output On Start

平行讀取

如果設為 true,當切換遊戲會話時,輸出將自動清除。

CommandBarLocalState

平行讀取

Comment Color

未複製
平行讀取

指定 Roblox Studio 腳本編輯器中註解的顏色。

Current Line Highlight Color

未複製
平行讀取

Debugger Current Line Color

未複製
平行讀取

Debugger Error Line Color

未複製
平行讀取

DeprecatedObjectsShown

平行讀取

如果設為 true,過時的物件將顯示在進階物件窗口以及物件瀏覽器中。

DisplayLanguage

Roblox 指令碼安全性
平行讀取

DraggerActiveColor

Roblox 指令碼安全性
平行讀取

DraggerMajorGridIncrement

Roblox 指令碼安全性
平行讀取

DraggerMaxSoftSnaps

Roblox 指令碼安全性
平行讀取

DraggerPassiveColor

Roblox 指令碼安全性
平行讀取

DraggerShowHoverRuler

Roblox 指令碼安全性
平行讀取

DraggerShowMeasurement

Roblox 指令碼安全性
平行讀取

DraggerShowTargetSnap

Roblox 指令碼安全性
平行讀取

DraggerSoftSnapMarginFactor

Roblox 指令碼安全性
平行讀取

DraggerSummonMarginFactor

Roblox 指令碼安全性
平行讀取

DraggerTiltRotateDuration

Roblox 指令碼安全性
平行讀取

Enable Autocomplete

平行讀取

當設為 true 時,腳本編輯器和命令列將在編寫時顯示自動完成功能菜單。

Enable Autocomplete Doc View

Roblox 指令碼安全性
平行讀取

Enable CoreScript Debugger

平行讀取

Enable Http Sandboxing

平行讀取

Enable Internal Beta Features

平行讀取

Enable Internal Features

平行讀取

Enable Script Analysis

Roblox 指令碼安全性
平行讀取

Enable Scrollbar Markers

Roblox 指令碼安全性
平行讀取

Enable Signature Help

Roblox 指令碼安全性
平行讀取

Enable Signature Help Doc View

Roblox 指令碼安全性
平行讀取

Enable Temporary Tabs

平行讀取

Enable Temporary Tabs In Explorer

平行讀取

Enable Type Hover

Roblox 指令碼安全性
平行讀取

EnableCodeAssist

Roblox 指令碼安全性
平行讀取

EnableIndentationRulers

Roblox 指令碼安全性
平行讀取

EnableSelectionTooltips

Roblox 指令碼安全性
平行讀取

Error Color

未複製
平行讀取

指定當在腳本編輯器中檢測到錯誤代碼時顯示的波浪下劃線的顏色。

Find Selection Background Color

未複製
平行讀取

設置腳本編輯器的查找選擇操作 (Ctrl+F) 中匹配項的高亮顏色。

Font

QFont
平行讀取

指定腳本編輯器使用的字體。

Format On Paste

平行讀取

Format On Type

平行讀取

Function Name Color

未複製
平行讀取

Highlight Current Line

平行讀取

Highlight Occurances

平行讀取

HintColor

未複製
平行讀取

Hover Animate Speed

平行讀取

指定當滑鼠懸停在 Workspace 中的一個可選物件時,懸停動畫閃爍的頻率。

Hover Box Thickness

Roblox 安全性
平行讀取

Hover Line Thickness

Roblox 安全性
平行讀取

Hover Over Color

平行讀取

指定懸停選擇框所使用的顏色。

IconOverrideDir

QDir
Roblox 指令碼安全性
平行讀取

Indent Using Spaces

平行讀取

IndentationRulerColor

未複製
Roblox 指令碼安全性
平行讀取

InformationColor

未複製
平行讀取

Keyword Color

未複製
平行讀取

設置內置 Luau 關鍵字的文字顏色。

LargeFileLineCountThreshold

Roblox 指令碼安全性
平行讀取

LargeFileThreshold

Roblox 指令碼安全性
平行讀取

Line Thickness

平行讀取

設置 Model.PrimaryPart 選擇裝飾的厚度。此值限制在 0 和 0.05 之間。

LoadAllBuiltinPluginsInRunModes

Roblox 指令碼安全性
平行讀取

LoadUserPluginsInRunModes

Roblox 指令碼安全性
平行讀取

LocalAssetsFolder

QDir
Roblox 指令碼安全性
平行讀取

LuaDebuggerEnabled

平行讀取

指定 Lua 調試器功能是否啟用。

LuaDebuggerEnabledAtStartup

隱藏
唯讀
未複製
平行讀取

Luau Keyword Color

未複製
平行讀取

Main Volume

Roblox 指令碼安全性
平行讀取

Matching Word Background Color

未複製
平行讀取

設置在腳本編輯器中雙擊的變數的高亮顏色。

Maximum Output Lines

平行讀取

輸出的最大行數。

未複製
平行讀取

Method Color

未複製
平行讀取

Number Color

未複製
平行讀取

指定 Roblox Studio 腳本編輯器中數字的顏色。

Only Play Audio from Window in Focus

平行讀取

如果設為 true,播放的音頻僅在遊戲窗口獲得焦點時才能聽到。

Operator Color

未複製
平行讀取

設置腳本編輯器中運算符字符的文字顏色。

Output Font

QFont
平行讀取

指定輸出使用的字體。

Output Layout Mode

平行讀取

設置輸出的佈局模式。

PermissionLevelShown

平行讀取

設置 API 在物件瀏覽器中顯示所需的最高權限級別。詳情請見 Enum.PermissionLevelShown

Physical Draggers Select Scope By Default

Roblox 指令碼安全性
平行讀取

Pivot Snap To Geometry Color

Roblox 安全性
平行讀取

PluginDebuggingEnabled

平行讀取

PluginsDir

QDir
平行讀取

本地插件存儲的目錄。

Primary Text Color

未複製
平行讀取

Property Color

未複製
平行讀取

ReloadBuiltinPluginsOnChange

Roblox 安全性
平行讀取

ReloadLocalPluginsOnChange

Roblox 安全性
平行讀取

Respect Studio shortcuts when game has focus

平行讀取

當設為 true 時,Roblox Studio 快捷方式將優先於在遊戲窗口中捕獲的輸入。

Ruler Color

未複製
平行讀取

Rulers

平行讀取

RuntimeUndoBehavior

平行讀取

Script Editor Color Preset

平行讀取

Script Editor Scrollbar Background Color

未複製
平行讀取

Script Editor Scrollbar Handle Color

未複製
平行讀取

ScriptTimeoutLength

平行讀取

腳本可以等待重新啟動的時間(以秒為單位),在超時之前。

Scroll Past Last Line

平行讀取

Secondary Text Color

未複製
平行讀取

Select Color

平行讀取

Workspace 中用於物件選擇的選擇框的顏色。

Select/Hover Color

平行讀取

設置 Model.PrimaryPart 選擇框的顏色。

Selected Menu Item Background Color

未複製
平行讀取

Selected Text Color

未複製
平行讀取

Selection Background Color

未複製
平行讀取

設置腳本編輯器中選擇文本的背景顏色。

Selection Box Thickness

Roblox 安全性
平行讀取

Selection Color

未複製
平行讀取

設置腳本編輯器中選擇文本的文字顏色。

Selection Line Thickness

Roblox 安全性
平行讀取

Set Pivot of Imported Parts

平行讀取

Show Core GUI in Explorer while Playing

平行讀取

如果設為 true,則在遊戲運行時,CoreGui 將在資源管理器中可見。

Show Diagnostics Bar

平行讀取

如果設為 true,則基本診斷信息將顯示在右下角。

Show FileSyncService

平行讀取

Show Hidden Objects in Explorer

平行讀取

Show Hover Over

平行讀取

如果設為 true,則在 Workspace 中懸停在物件上時將顯示選擇框。

Show Light Guides

Roblox 指令碼安全性
平行讀取

Show Navigation Labels

Roblox 指令碼安全性
平行讀取

Show Navigation Mesh

平行讀取

當設為 true 時,PathfindingService 使用的導航網格將可視化。

Roblox 指令碼安全性
平行讀取

Show Plugin GUI Service in Explorer

平行讀取

當設為 true 時,PluginGuiService 將在 Roblox Studio 的資源管理器中顯示。

Show Singly Selected Attachment Parent Frame

Roblox 指令碼安全性
平行讀取

Show Whitespace

平行讀取

Show plus button on hover in Explorer

平行讀取

ShowCorePackagesInExplorer

Roblox 指令碼安全性
平行讀取

Skip Closing Brackets and Quotes

平行讀取

String Color

未複製
平行讀取

指定腳本編輯器中字符串的顏色。

Tab Width

平行讀取

指定在腳本編輯器中用於表示制表符的空格數。

Text Color

未複製
平行讀取

指定腳本編輯器中普通文本的顏色。

Text Wrapping

平行讀取

如果設為 true,則腳本編輯器中的文本將進行換行。

平行讀取

Theme 屬性用於獲取/設置 Studio 使用的當前 StudioTheme

這是專門為 Plugins 內部使用,但也可以在命令行中執行。你可以通過以下方式訪問該函數:


settings().Studio.Theme

例如,如果你想打印當前的 Studio 主題:


print("The current Studio theme is:", settings().Studio.Theme)

Use Bounding Box Move Handles

Roblox 指令碼安全性
平行讀取

Warning Color

未複製
平行讀取

指定當腳本分析器檢測到應在腳本編輯器中解決的問題時顯示的波浪下劃線的顏色。

Whitespace Color

未複製
平行讀取

方法

GetAvailableThemes

外掛程式安全性

GetAvailableThemes() 函數返回可用於 StudioStudioThemes 列表。你可以通過以下方式訪問該函數:


settings().Studio:GetAvailableThemes()

返回

Studio 中可用的主題列表。

範例程式碼

以下代碼檢索所有可用主題的陣列,然後遍歷它們。

輸出工作室主題

-- 獲取可用的工作室主題
local themes = settings().Studio:GetAvailableThemes()
for _, theme in pairs(themes) do
print(theme) -- 輸出主題名稱
end

活動

ThemeChanged

外掛程式安全性

ThemeChanged 事件在 Studio 的 Theme 變更時觸發。最好利用此事件獲取被更改的主題的顏色,並相應地更新插件的 UI。


此頁面