工作室對象是專屬 Roblox Studio 的設置對象。它可以在 Roblox Studio 的設置下找到,在工作室標籤下。
概要
屬性
如果設為真實,Roblox Studio 將嘗試將在單人遊戲期間進行的腳本變更傳送到打開的空間。
如果設為真實,滑鼠移動到可選擇對象時顯示的漂浮選擇框會根據 在 和 之間閃爍。
指定 Roblox Studio 腳本編輯器的背景顏色。
在 Roblox Studio 中設置 Advanced Objects 標籤的滾動模式。
在腳本編輯器中設置內置功能和關鍵字的顏色。
設置相機在使用滑鼠輪時前進或向後移動的磚格數量。
設置在移動鍵按下時將相機移動到厘米/秒的速度。
設置相機在移動按鍵時移動的速度(以厘米/秒為單位)。
如果設為真值,輸出將在遊戲會話切換時自動清除。
在 Roblox Studio 的腳本編輯器中指定評論的顏色。
指定使用者在 Roblox Studio 中啟用 Execute Script 按鈕時將開啟的預設提示目錄。
如果設為真實,過時的對象將在「高級對象」視窗和「對象瀏覽器」中顯示。
當設為真實時,腳本編輯器和指令欄會在寫入時顯示自動完成選單。
指定在腳本編輯器中偵測到無效代碼時顯示的波浪線條的顏色。
在腳本編輯器的「尋找選擇」操作中設置匹配的強調顏色(Ctrl+F)。
指定使用在腳本編輯器中的字體。
指定徘徊動畫在 Workspace 中切換到可選擇對象時會閃爍的頻率。
指定漂浮選擇框使用的顏色。
設置內置 Luau 關鍵字的文字顏色。
設置 Model.PrimaryPart 選擇裝飾的厚度。此值被限制在 0 和 0.05 之間。
指定是否啟用 Lua 調試器功能。
在腳本編輯器中設置雙擊變量的亮點顏色。
輸出中可以顯示的最大線數。
在 Roblox Studio 腳本編輯器中指定數字的顏色。
如果設為真實,播放的音頻只會在遊戲窗口被聚焦時聽到。
在腳本編輯器中設置運作者角色的文字顏色。
指定輸出使用的字體。
設定輸出的布局模式。
設置 API 在物件瀏覽器中顯示所需的最高許可等級。請見 Enum.PermissionLevelShown 獲得更多資訊。
儲存本地插件的目錄。
當設為真實時,Roblox Studio 快捷方式將優先於遊戲窗口中捕獲的輸入。
腳本在時間到期之前可以等待重新啟動的時間(秒)。
在 Workspace 中使用對象選擇時使用的選擇框的顏色。
設置 Model.PrimaryPart 選擇方塊的顏色。
在腳本編輯器中設置選擇的文字的背景顏色。
在腳本編輯器中設置選擇的文字顏色。
如果設為真值,CoreGui將在遊戲運行時顯示在探索器中。
如果設為真實,基本診斷資訊將在右下方顯示。
如果設為真,在 Workspace 上漂浮一個對象會顯示選擇方塊。
當設為真實時,PathfindingService使用的導航網格將被視覺化。
當設為真實時,PluginGuiService將在 Roblox Studio 的導航器中顯示。
在腳本編輯器中指定字串的顏色。
指定要在腳本編輯器中代表標籤的多少空格。
在腳本編輯器中指定普通文字的顏色。
如果設為真實,則腳本編輯器中的文字將被包裝。
用於取得/設置 Studio 使用的當前 theme 。
指定在指令分析器檢查到應該在腳本編輯器中處理的問題時顯示的波浪線條的顏色。
屬性
"TODO" Color
"function" Color
"local" Color
"nil" Color
"self" Color
ActionOnAutoResumeSync
ActionOnStopSync
Active Color
Active Hover Over 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
AutocompleteAcceptanceBehavior
Automatically trigger AI Code Completion
Bool Color
Bracket Color
Camera Pan Speed
Camera Speed Adjust Binding
Camera Zoom to Mouse Position
CameraAdaptiveSpeed
CameraOrbitSensitivity
CameraPanSensitivity
CameraShiftFactor
CameraTweenFocus
CameraZoomSpeed
CommandBarLocalState
Current Line Highlight Color
Debugger Current Line Color
Debugger Error Line Color
DefaultScriptFileDir
指定使用者在 Roblox Studio 中啟用 Execute Script 按鈕時將開啟的預設提示目錄。
DisplayLanguage
DraggerActiveColor
DraggerMajorGridIncrement
DraggerMaxSoftSnaps
DraggerPassiveColor
DraggerShowHoverRuler
DraggerShowMeasurement
DraggerShowTargetSnap
DraggerSoftSnapMarginFactor
DraggerSummonMarginFactor
DraggerTiltRotateDuration
Enable Autocomplete Doc View
Enable CoreScript Debugger
Enable Http Sandboxing
Enable Internal Beta Features
Enable Internal Features
Enable Script Analysis
Enable Scrollbar Markers
Enable Signature Help
Enable Signature Help Doc View
Enable Temporary Tabs
Enable Temporary Tabs In Explorer
Enable Type Hover
EnableCodeAssist
EnableIndentationRulers
EnableSelectionTooltips
Font
指定使用在腳本編輯器中的字體。
Format On Paste
Format On Type
FreeCameraSpeedScroll
Function Name Color
Highlight Current Line
Highlight Occurances
HintColor
Hover Box Thickness
Hover Line Thickness
IconOverrideDir
Indent Using Spaces
IndentationRulerColor
InformationColor
LargeFileLineCountThreshold
LargeFileThreshold
LoadAllBuiltinPluginsInRunModes
LoadUserPluginsInRunModes
LocalAssetsFolder
LuaDebuggerEnabledAtStartup
Luau Keyword Color
Main Volume
Menu Item Background Color
Method Color
Output Font
指定輸出使用的字體。
Physical Draggers Select Scope By Default
Pivot Snap To Geometry Color
PluginDebuggingEnabled
PluginsDir
儲存本地插件的目錄。
Primary Text Color
Property Color
ReloadBuiltinPluginsOnChange
ReloadLocalPluginsOnChange
Ruler Color
Rulers
RuntimeUndoBehavior
Script Editor Color Preset
Script Editor Scrollbar Background Color
Script Editor Scrollbar Handle Color
Scroll Past Last Line
Secondary Text Color
Selected Menu Item Background Color
Selected Text Color
Selection Box Thickness
Selection Line Thickness
Set Pivot of Imported Parts
Show FileSyncService
Show Hidden Objects in Explorer
Show Light Guides
Show Navigation Labels
Show Pathfinding Links
Show Singly Selected Attachment Parent Frame
Show Whitespace
Show plus button on hover in Explorer
ShowCorePackagesInExplorer
Skip Closing Brackets and Quotes
Theme
主題屬性用於獲取/設置目前由 StudioTheme 使用的 Studio 。
這是用於在 Plugins 內使用的,但也會在命令行中執行。您可以通過以下方式存取功能:
settings().Studio.Theme
例個體、實例,如果您想列印目前的 Studio 主題:
print("The current Studio theme is:", settings().Studio.Theme)
Use Bounding Box Move Handles
Whitespace Color
方法
GetAvailableThemes
GetAvailableThemes() 功能返回一個列表,包含在 中可用的主題。您可以通過以下方式存取功能:
settings().Studio:GetAvailableThemes()
返回
工作室中可用的主題清單。
範例程式碼
The code below retrieves an array of all available themes and then iterates through them.
local themes = settings().Studio:GetAvailableThemes()
for _, theme in pairs(themes) do
print(theme)
end
活動
ThemeChanged
主題變更事件在 Studio 的 變更時發生。這個事件最好的使用方式是從變更主題的主題中獲取顏色,並依照此更新外掛程式的用戶介面。