Effect||doc136573

September 20, 2022

Format

EffectWindow.Effect

Describe

Control to directly specify the full path of the special effect resources in the explorer.

Code example

image.png

Before using this code, you need to create and make your own special effects resource

local effectWnd = UI:CreateGUIWidget(Enum.WidgetType.Effect)
effectWnd.Size = UDim2.new(1,0,1,0)
effectWnd.Effect = "asset/Effect/UIEffect.effect"
local Image = UI:CreateGUIWidget(Enum.WidgetType.Image)
Image.ImageColor = Color3.new(0.2,0.2,0.2)
Image:AddChild(effectWnd)
UI.Root:AddChild(Image)

24.gif