Forum rules - please read before posting.

Set interaction parameters reseting when switching between use interactions

edited June 2023 in Technical Q&A

Hello!

I have a hotspot in a scene with interaction source set as asset file. I have two use interactions: look at and use and they have different action list assets for the wanted interaction. Everything is working perfectly fine until I try to set interaction parameters to those action list assets.

When I try to set interactions parameters for those two use interactions (look at and use), switching between them in the set parameters menu causes the another one to resets. If my Look At interaction's action list asset first parameter is Gameobject and the use interaction action list asset has GameObject as first parameter as well, they cannot seem to have different gameobjects assigned. If I set Look At as Gameobject X, the Use will change as Gameobject X as well even though previously I have assigned it to Gameobject Y.

And if the look at have for example 5 interaction parameters to fill and use have 2 parameters to fill and I switch the set interaction tab from look at to use and then back to look at, those three last of the parameters have completely reseted. The first two have either survived or replaced (if they are the same type of parameters as use has, they'll be replaced).

Wanted behaviour would be able to set parameters for different use interactions (look at / use) separately without them interfering each other. And that another could have different amount of parameters as the another. Is this possible or is there something I'm missing with the set interaction parameters tool?

I'm using AC v1.77.3

Comments

  • Welcome to the community, @devannika.

    Apologies for the trouble - I will attempt a recreation.

    Are both instances of the SetInteraction Parmaeters attached to the same object, and could you share a screenshot showing Inspector of both Set Interaction Parameters?

    A component should only affect the parameter values of the Interaction/asset it references, but the behaviour of values reverting upon switching Interaction type in the Editor is expected. You'll need to set the intended Interaction value first, and then set its parameter values.

  • Thank you! Here are the screenshots:

    Hotspot that contains use interactions look at and use

    This is the Look at set interaction parameters how it should look. I have just set those parameters.

    Then I change the tab to 1: Use interaction and see that particles001 is already set to testiCamera.

    I change the correct parameter values

    Next I change back to Look at and my parameters have reseted. And my hotspot interactions are broken because I cannot set the interaction parameters for both interactions because they keep reseting and replacing each others.

    Here are screenshots of my action list assets parameters as well.


  • Thanks for the details.

    What you're seeing is as intended - though I can understand the confusion.

    To clarify: a single Set Interaction Parameters component is intended to change the parameter values of a single Interaction.

    If you want to set the Interaction parameters of both the Look At and Use interactions, add a second Set Interaction Parameters component to the same object - and have each affect a different Interaction.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.