강의

멘토링

커뮤니티

Inflearn Community Q&A

jgh9912039837's profile image
jgh9912039837

asked

[MMORPG Game Development Series with C# and Unity] Part3: Unity Engine

Sound Manager #4

캐싱 질문

Written on

·

226

0

Play(string path, ....) 버전 말고 Play(AudioClip clip ...) 버전에서는 캐싱 기능이 들어가있지 않은데, 혹시 이 경우 캐싱해주려면 어떻게 하면 좋을까요?

HashSet 자료구조로도 캐싱하여 뽑아올 수 있는지 알고싶습니다.

 

C#unity

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

이 부분은 응용을 하셔야 합니다.
audioClip.name을 추출해서 GetOrAdd와 비슷한 코드를 타게 한다거나,
여러 가지 방법이 있겠죠.

jgh9912039837's profile image
jgh9912039837

asked

Ask a question