Studio对象是一个仅用于Roblox Studio的设置对象。它可以在Roblox Studio的设置中找到,位于Studio选项卡下。
概要
属性
如果设置为true,Roblox Studio将尝试将Play Solo会话期间所做的脚本更改转移到打开的地方。
如果设置为true,当鼠标悬停在Workspace中的可选择对象上时,显示的悬停选中框将根据Hover Animate Speed在Hover Over Color和Select Color之间闪烁。
指定Roblox Studio脚本编辑器的背景颜色。
设置Roblox Studio中Advanced Objects选项卡的滚动模式。
设置脚本编辑器中内置函数和关键字的颜色。
设置在使用鼠标滚轮时,摄像机前后移动的距离(以stud为单位)。
设置在按住Shift键和移动键时,摄像机的移动速度(以stud/sec为单位)。
设置按下移动键时,摄像机的移动速度(以stud/sec为单位)。
如果设置为true,输出将在游戏会话切换时自动清除。
指定Roblox Studio脚本编辑器中注释的颜色。
如果设置为true,已弃用的对象将在Advanced Objects窗口以及对象浏览器中显示。
当设置为true时,脚本编辑器和命令栏在编写时将显示自动完成菜单。
指定在脚本编辑器中检测到格式不正确的代码时显示的波浪下划线的颜色。
设置脚本编辑器查找选择操作(Ctrl+F)中匹配项的高亮颜色。
指定脚本编辑器中使用的字体。
指定当鼠标悬停在Workspace中的可选择对象上时,悬停动画闪烁的频率。
指定悬停选择框使用的颜色。
设置内置Luau关键字的文本颜色。
设置Model.PrimaryPart选择装饰的厚度。此值限制在0到0.05之间。
指定Lua调试器功能是否启用。
设置脚本编辑器中双击变量的高亮颜色。
输出中可以显示的最大行数。
指定Roblox Studio脚本编辑器中的数字颜色。
如果设置为true,只有在游戏窗口获得焦点时,播放的音频才会被听到。
设置脚本编辑器中操作字符的文本颜色。
指定输出中使用的字体。
设置输出的布局模式。
设置API在对象浏览器中显示所需的最高权限级别。有关更多信息,请参见Enum.PermissionLevelShown。
本地插件存储的目录。
如果设置为true,Roblox Studio快捷键将优先于在游戏窗口中捕获的输入。
脚本可以等待重新启动的时间(以秒为单位),超过该时间将超时。
在Workspace中与对象选择一起使用的选择框的颜色。
设置Model.PrimaryPart选择框的颜色。
设置脚本编辑器中选定文本的背景颜色。
设置脚本编辑器中选定文本的文本颜色。
如果设置为true,CoreGui将在游戏运行时在资源管理器中可见。
如果设置为true,基本诊断信息将在右下角显示。
如果设置为true,当鼠标悬停在Workspace中的对象上时,将显示选择框。
如果设置为true,将可视化PathfindingService使用的导航网格。
如果设置为true,PluginGuiService将在Roblox Studio的资源管理器中显示。
指定脚本编辑器中字符串的颜色。
指定在脚本编辑器中表示制表符的空格数。
指定脚本编辑器中普通文本的颜色。
如果设置为true,脚本编辑器中的文本将被换行。
用于获取/设置当前theme,该主题由Studio使用。
指定在脚本编辑器中,当脚本分析器检测到应处理的问题时,显示的波浪下划线的颜色。
属性
"TODO" Color
"function" Color
"local" Color
"nil" Color
"self" Color
ActionOnAutoResumeSync
ActionOnStopSync
Active Color
Active Hover Over Color
Animate Hover Over
如果设置为true,当鼠标悬停在Workspace中的可选择对象上时,显示的悬停选中框将根据Hover Animate Speed在Hover Over Color和Select 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
CameraSpeedLockDefault
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
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
Theme属性用于获取/设置当前由Studio使用的StudioTheme。
此属性旨在在Plugins中使用,但在命令行中也可以执行。您可以通过以下方式访问该函数:
settings().Studio.Theme
例如,如果您想要打印当前Studio主题:
print("当前Studio主题为:", settings().Studio.Theme)
Use Bounding Box Move Handles
Whitespace Color
方法
GetAvailableThemes
**GetAvailableThemes()**函数返回Studio中可用的StudioThemes列表。您可以通过以下方式访问该函数:
settings().Studio:GetAvailableThemes()
返回
在Studio中可用的主题列表。
代码示例
下面的代码检索所有可用主题的数组,然后对它们进行迭代。
local themes = settings().Studio:GetAvailableThemes()
for _, theme in pairs(themes) do
print(theme)
end