Sound: change looping property at runtime (SOLVED)

Is it possible to change looping property of a sound component at runtime?

Is it possible to change sound property of a sound component at runtime? I have a lot of effects but only one or two will be played at the same time and I was wondering if I could change this parameter or I have to create a component for every sound.

Thanks.

You create a component of every sound. It defines what files are loaded or not too.

Changing loop at runtime I don’t know if it’s possible. You would generally loop music or ambiance and not other sounds.

1 Like

No, you cannot change the sound assigned to a sound component at run-time. You need to create one sound component per sound you intent to use in your game. If a sound is not added as a component it will not be included in the binary.

And no, you cannot change the looping property at run-time either.

2 Likes

Thanks for the answers.
I will mark the issue as solved then.

1 Like