Unity/게임 엔진 응용 프로그래밍

유니티 Resources 폴더

치명적흑형 2021. 10. 18. 17:31

Asset폴더의 Resources 폴더 하위의 파일들은 코드로 접근이 가능하다.

 

리소스 로드 할때 주의 할것.

초기화는 한번만 해야된다.

 


 

https://docs.unity3d.com/Manual/BestPracticeUnderstandingPerformanceInUnity6.html

 

Unity - Manual: The Resources folder

The Resources folder The Resources folder is a common source of many problems in Unity projects. Improper use of the Resources folder can bloat the size of a project’s build, lead to uncontrollable excessive memory utilization, and significantly increase

docs.unity3d.com

 

https://docs.unity3d.com/kr/530/ScriptReference/Resources.html

 

Unity - 스크립팅 API: Resources

에디터에서, Resources.FindObjectsOfTypeAll기능은 에셋과 씬 오브젝트를 찾는 데 사용할 수 있습니다. Assets폴더 내 "Resources"이름을 가진 폴더안의 모든 에셋은 Resources.Load 함수를 통해서 접근할 수 있습

docs.unity3d.com