工作室对象是专为 Roblox Studio 设计的设置对象。它可以在 Roblox Studio 的“工作室”选项卡下找到。
概要
属性
如果设置为真实,Roblox Studio 将尝试将在单独游戏期间进行的脚本更改转移到打开的场景。
如果设置为真,当将鼠标悬停在可选对象上时显示的悬停选择框将根据 在 和 之间闪烁。
指定 Roblox Studio 脚本编辑器的背景颜色。
在 Roblox Studio 中设置 Advanced Objects 标签的滚动模式。
在脚本编辑器中设置内置函数和关键字的颜色。
设置相机在使用鼠标轮时向前或向后移动的多少钉子。
将相机移动时按住 Shift 键所需的速度设置为螺柱/秒。
设置移动键按下时镜头移动的速度(格/秒)。
如果设置为真实,输出将在游戏会话切换时自动清除。
在 Roblox Studio 的脚本编辑器中指定评论的颜色。
如果设置为真实,过时的对象将显示在高级对象窗口和对象浏览器中。
当设置为真时,脚本编辑器和命令栏将在写入时显示自动完成菜单。
指定脚本编辑器检测到错误代码时显示的波浪线的颜色。
在脚本编辑器的“查找选择”操作中设置匹配的亮点颜色(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
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
例实例,如果你想打印当前工作室主题:
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 的 更改时触发。使用此事件的最佳方法是从更改主题的主题获取颜色,并根据更新插件的用户界面进行更新。