EffectRotation||doc136575

September 20, 2022

Format

EffectWindow.EffectRotation

Describe

The rotation angle of the effect in the window.

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"
effectWnd.EffectRotation = Vector3.new(0,0,30)
local Image = UI:CreateGUIWidget(Enum.WidgetType.Image)
Image.ImageColor = Color3.new(0.2,0.2,0.2)
Image:AddChild(effectWnd)
UI.Root:AddChild(Image)

25.gif