Skip to content

TextComponent

29thnight edited this page Nov 27, 2025 · 1 revision

TextComponent

간단 설명: 폰트/문자열/색/정렬을 설정하여 UI 텍스트를 그리는 컴포넌트. 수동 사각형 사용 옵션 지원.

라이프사이클

메서드 설명
Awake() 폰트 로드/캔버스 연결
Update(tick) 부모 RectTransform 기반 렌더 영역 계산, 메시 업데이트
OnDestroy() 리소스 해제

설정/조회

메서드 설명
SetMessage/GetTextMessage() 텍스트 설정/조회
SetFont(path) 폰트 설정(경로/포인터 버전 제공)
GetFont()/GetFontPath() 폰트 포인터/경로 조회
Get/SetColor() / Get/SetAlpha() 색상/알파
Get/SetFontSize() 폰트 크기
Get/SetRelativePosition() 상대 위치
SetHorizontalAlignment/GetHorizontalAlignment() 정렬
Get/SetManualRect() / IsUsingManualRect()/SetUseManualRect() 수동 렌더 영역
GetStretchSize() 부모에 의해 허용된 최대 크기

필드: font, fontPath, message, relpos, color, manualRect, fontSize, horizontalAlignment, useManualRect, 측정 크기 등.

CreatorEngine

API Docs

API Reference
Main
PhysicsSystem
RenderEngine
ScriptBinder
Utility_Framework

etc

Clone this wiki locally