GuiButton
GuiButton : GuiObject
Overview
GuiButton์ GuiObject๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ์ถ์ ํด๋์ค๋ก, TextButton๊ณผ ImageButton ๋ฑ ํด๋ฆญ ๊ฐ๋ฅํ UI ์์์ ๊ณตํต ๊ธฐ๋ฅ์ ์ ์ํฉ๋๋ค.
Properties
Methods
Events
Activated
๋ฒํผ์ ๋๋ฅผ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ์ ๋๋ค.
๋ฒํผ์ ํด๋ฆญํ๊ฑฐ๋ ํฐ์นํ ๋ค ํด๋น UI ์์ ์์์ ์์ ๋ ๋ ๋ฐ์ํ๋ฉฐ, ์ ๋ ฅ์ด ์์๋๋ ์๊ฐ์ด ์๋ ์ ๋ ฅ์ด ์ข ๋ฃ๋๋ ์์ (Up)์ ์คํ๋ฉ๋๋ค.
๋ํ, ์ด ์ด๋ฒคํธ๊ฐ ์ ์์ ์ผ๋ก ๋ฐ์ํ๋ ค๋ฉด ๋ฒํผ์ Active ์์ฑ์ด true๋ก ์ค์ ๋์ด ์์ด์ผ ํฉ๋๋ค.
Parameters
Code Samples
local ScreenGui = script.Parent
local ImageButton = ScreenGui.ImageButton
local function OnActivated()
print("Activated!")
end
ImageButton.Activated:Connect(OnActivated)
Last updated