Table of Contents

Class UITheme

Namespace
Framework.Systems.UI
Assembly
Assembly-CSharp.dll

UI 디자인 리소스 통합 에셋. 프로젝트의 모든 UI 스타일을 중앙에서 관리한다.

[CreateAssetMenu(menuName = "Framework/UI/Theme", fileName = "UITheme")]
public sealed class UITheme : ScriptableObject
Inheritance
object
Object
ScriptableObject
UITheme

Remarks

[사용 방법]

  1. Create > Framework > UI > Theme 으로 에셋 생성
  2. 각 Style 필드에 색상 / 폰트 / 크기 설정
  3. Style Binder 컴포넌트가 이 에셋을 참조해 자동 적용

[uPalette 연동] uPalette 설치 시 IThemeService.ApplyTheme() 이 uPalette 테마를 전환한다. 이 에셋은 uPalette 와 독립적으로 사용 가능하다.

Fields

BodyText

public UITextStyle BodyText

Field Value

UITextStyle

CaptionText

public UITextStyle CaptionText

Field Value

UITextStyle

DangerButton

public UIButtonStyle DangerButton

Field Value

UIButtonStyle

HeaderText

[Header("Text")]
public UITextStyle HeaderText

Field Value

UITextStyle

InputField

[Header("InputField")]
public UIInputFieldStyle InputField

Field Value

UIInputFieldStyle

PrimaryButton

[Header("Button")]
public UIButtonStyle PrimaryButton

Field Value

UIButtonStyle

SecondaryButton

public UIButtonStyle SecondaryButton

Field Value

UIButtonStyle

Toggle

[Header("Toggle")]
public UIToggleStyle Toggle

Field Value

UIToggleStyle