Window||doc136461

September 20, 2022

Format

SceneUI.Window

Describe

GUI window instance of the scene window.
Create a GUI window instance through ui:createguiwindow or ui:createguiwidget and set it to sceneui When in window, the path of layout will be automatically set to sceneui On layout, when the set window instance is a single control, sceneui Layout is an empty string. When sceneui When the GUI window instance of window is destroyed or removed, sceneui Layout and sceneui Windows will be automatically set to empty.

Code example

Create a scene UI instance on the client, set it at the player child level to follow the player, and set guiwindow

local SceneUI = Instance.new("SceneUI", Me)
local window = UI:CreateGUIWindow("test.layout")
SceneUI.Window = window
print(SceneUI.Layout)

SceneUI.Window = nil
print(SceneUI.Layout)