--Workspace/Sample/ScreenUI/Frame 경로에 있는 오브젝트를 FrameUI 변수에 할당해요.
local FrameUI = Workspace.Sample.ScreenUI.Frame
wait(2) --2초를 기다린 뒤,
FrameUI:SetVisible(false) --FrameUI를 보이지 않게 해요.
print("UI Visible : false")
wait(2) --2초를 기다린 뒤,
local UIState = FrameUI:GetVisible() --FrameUI의 현재 가시성 상태를 받아와요.
FrameUI:SetVisible(not UIState) --FrameUI를 보이게 해요.
print("UI Visible : true")
'LuaScript' 카테고리의 다른 글
숫자,문자 변환: tonumber / tostring (0) | 2022.01.12 |
---|---|
문자열 문자 교체: string.gsub, 식별자 (0) | 2022.01.12 |
[디토랜드] 단순 글자 변경 :SetText (0) | 2022.01.10 |
[디토랜드] 투명도 변경 :SetOpacity() - for문 애니메이션 응용 (0) | 2022.01.10 |
[디토랜드] 단순 색상 변경 :SetBackgroundColor() :SetTextColor() (0) | 2022.01.10 |