Hi Opsive!
I am trying to make Behaviour Designer 'Can Hear Object' work with the generated footstep sounds in UCC. I found this thread from a few years ago and implemented the solution there, which was to use targetObject.GetComponentsInChildren<AudioSource>(targetObject).
I'm not too satisfied with this, as there are a lot of wasted operations in order to retrieve the audio sources. In the thread I linked (which is from 2018), you mentioned that you wanted to come up with a better solution. Have you done so? Could you point me in the right direction? I would really appreciate it.
Thank you
I am trying to make Behaviour Designer 'Can Hear Object' work with the generated footstep sounds in UCC. I found this thread from a few years ago and implemented the solution there, which was to use targetObject.GetComponentsInChildren<AudioSource>(targetObject).
I'm not too satisfied with this, as there are a lot of wasted operations in order to retrieve the audio sources. In the thread I linked (which is from 2018), you mentioned that you wanted to come up with a better solution. Have you done so? Could you point me in the right direction? I would really appreciate it.
Thank you