Reality Composer Pro Audio "On Tap" Behaviors Help

Looking for help on getting "On Tap" to work inside RCP for my AVP project. I can get it to work when using "on added to scene" but if I switch to "on tap", the audio will not play when attaching the audio to an entity in my scene. I'm using the same entity for the tap gesture that the audio is using for the emitter. Here is my work flow for the "on added to scene" that works correctly to help troubleshoot my non working "on tap".

Behaviors: "on added to scene". action - timeline Input target: check mark enabled, allowed all Collision set to default Audio library: source mp3 file Chanel Audio: resource mp3 file above Timeline: Play Audio with mp3 file added

This set up in RCP allows my AVP project to launch correctly with audio "on added to scene". But when switching behaviors to "on tap", the audio will no longer play and I can not figure out why. I've tried several different options and nothing works. Please help!

Answered by El_Gato_Luchador in 821754022

The edit button disappeared on me so I'm double posting. My apologies. In my continued searching, I found my answer in another thread in these forums. I was not aware that I needed to add additional lines of code which did indeed work. Problem is solved!!! Here is what I added:

    // enable Reality Composer animations...
    .gesture(
         SpatialTapGesture()
             .targetedToAnyEntity()
             .onEnded {
                 $0.entity.applyTapForBehaviors()
             }
Accepted Answer

The edit button disappeared on me so I'm double posting. My apologies. In my continued searching, I found my answer in another thread in these forums. I was not aware that I needed to add additional lines of code which did indeed work. Problem is solved!!! Here is what I added:

    // enable Reality Composer animations...
    .gesture(
         SpatialTapGesture()
             .targetedToAnyEntity()
             .onEnded {
                 $0.entity.applyTapForBehaviors()
             }
Reality Composer Pro Audio "On Tap" Behaviors Help
 
 
Q