GuiBase2d
GuiBase2d : Instance
Overview
2D GuiObject๋ค์ ๊ธฐ๋ฐ์ด ๋๋ ์ถ์ ํด๋์ค์ ๋๋ค.
Properties
AbsolutePosition
Vector2
UI ์์๊ฐ ์ค์ ํ๋ฉด์์ ๋ ๋๋ง๋๋ ์์น๋ฅผ ํฝ์ ๋จ์๋ก ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
์ด ๊ฐ์ ๋ถ๋ชจ UI ์์๋ค์ ์์น์ ํฌ๊ธฐ๋ฅผ ๋ชจ๋ ๋ฐ์ํ ์ต์ข ๊ณ์ฐ ๊ฒฐ๊ณผ์ด๋ฉฐ, ํญ์ ์์์ ์ข์ธก ์๋จ์ ๊ธฐ์ค์ผ๋ก ํฉ๋๋ค.
Code Samples
local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel
print("AbsolutePosition : ", TextLabel.AbsolutePosition)
AbsoluteSize
Vector2
UI ์์๊ฐ ํ๋ฉด์ ๋ ๋๋ง๋ ๋ ์ ์ฉ๋๋ ์ค์ ํฌ๊ธฐ๋ฅผ ํฝ์ ๋จ์๋ก ๋ํ๋ด๋ ์์ฑ์ ๋๋ค.
์ด ๊ฐ์ ๋ถ๋ชจ์ ํฌ๊ธฐ, AnchorPoint, Scale ๋ฑ์ ์ค์ ์ด ๋ชจ๋ ๋ฐ์๋ ๊ฒฐ๊ณผ๊ฐ์ผ๋ก, ํ๋ฉด์์ ํด๋น ์์๊ฐ ์ฐจ์งํ๋ ์ต์ข ํฌ๊ธฐ๋ฅผ ์ ํํ๊ฒ ํ์ธํ ์ ์์ต๋๋ค.
Code Samples
local ScreenGui = script.Parent
local TextLabel = ScreenGui.TextLabel
print("AbsoluteSize : ", TextLabel.AbsoluteSize)
Methods
Events
Last updated