menu
 

Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

0 투표
Hello.

How do i change loop flag of playing soundevent. in unity5?

Music would like to repeat to unconditionally by the code. I use the "RTPC"?,
General Discussion Jelyoung K. (160 포인트) 로 부터

2 답변

+1 투표
Hi Jelyoung,

I may be wrong, but I don't think it's possible to change the loop property from code. You'll have to set it from the Sound Property Editor. If you want a looping version and a non-looping version of the same sound, you can either split them using a switch container, or you can have two different events that are identical (except for the loop option).
Richard Goulet (5.8k 포인트) 로 부터
0 투표
Or you could set a switch to "end" the music, then have it transition to a blank/silent segment and set the transition properties to allow to play out through the exit cue.
Monty M. (2.7k 포인트) 로 부터
I think it would be simpler to just use a "break" action on an event, no? Does that work with music events?
The break action does not appear to work on music objects.  Also, I find that using switch gives me more control over how the music will end.
...