Skip to content
이정훈 edited this page Mar 16, 2025 · 9 revisions

개요

싱글톤 클래스 관리를 위한 유니티 패키지입니다.

설치 방법

https://github.com/E4-Unity/com.eu4ng.manager.singleton.git?path=/package#v0.1.0

주요 기능

  • Singleton: 제네릭 싱글톤 클래스
  • MonoSingleton: MonoBehaviour를 상속받은 제네릭 싱글톤 클래스
  • DeveloperSettings: 제네릭 싱글톤 스크립터블 오브젝트
  • SingletonManager: 어느 씬에서 시작하더라도 SingletonManagerSettings에 등록된 프리팹들을 씬에 존재하는 어떤 오브젝트들보다 가장 먼저 생성합니다.

Project Settings

  • Edit > ProjectSettings > SingletonManager
  • Resources/DeveloperSettings/SingletonManagerSettings.asset

image

로그 활성화 방법

  • ProjectSettings > Player > Script Compilation > Scripting Define Symbols: LOG_SINGLETONMANAGER

image

Clone this wiki locally