StyleGuide Sample 완료

This commit is contained in:
logonkhi
2026-01-13 20:39:45 +09:00
parent c8ff7b503d
commit ee86f93814
47 changed files with 20319 additions and 88 deletions

View File

@@ -233,7 +233,24 @@ UI Toolkit 개발 시 다음 위치의 스타일 리소스를 참조하세요:
---
## 8) 주석 원칙 (C# XML)
## 8) 아이콘 사용 가이드 (Icons)
### 아이콘 사용 우선순위
UI 아이콘 적용 시 다음 순서를 반드시 준수해야 합니다.
1. **1순위 (Material Icons)**: `UTKMaterialIcons` 클래스 확인
- 폰트 기반 아이콘(Unicode)을 우선 사용합니다.
- 예: `UTKButton.SetMaterialIcon(UTKMaterialIcons.Home)`
2. **2순위 (Image Icons)**: `UTKImageIcons` 클래스 사용
- 필요한 아이콘이 `UTKMaterialIcons`에 없는 경우에만 `UTKImageIcons`를 사용합니다.
- 예: `UTKButton.SetImageIcon(UTKImageIcons.CustomIcon)`
> **권장**: 일관된 UI 스타일과 메모리 효율을 위해 가능한 Material Icons 사용을 권장합니다.
---
## 9) 주석 원칙 (C# XML)
```csharp
/// <summary>
@@ -251,7 +268,7 @@ public async UniTask<UserData?> LoadUserAsync(string userId, CancellationToken c
---
## 9) 디자인 패턴 요약
## 10) 디자인 패턴 요약
| 패턴 | 사용 시점 |
|------|-----------|
@@ -266,7 +283,7 @@ public async UniTask<UserData?> LoadUserAsync(string userId, CancellationToken c
---
## 10) View 기본 패턴
## 11) View 기본 패턴
```csharp
#nullable enable
@@ -307,7 +324,7 @@ public abstract class UIViewBase : IDisposable
---
## 11) Unity Nullable 주의
## 12) Unity Nullable 주의
```csharp
// Unity Object는 == null 오버로드됨
@@ -321,7 +338,7 @@ if (ReferenceEquals(obj, null)) { }
---
## 12) 품질 자동화
## 13) 품질 자동화
### .editorconfig 권장
```ini