Forum rules - please read before posting.

Cutscene - Interact missing in animation event

edited February 4 in Technical Q&A

I am using Sprites Unity Complex. I have an object in a scene with animator component. This object has child objects that are various rigs with corresponding animations. It is the same setup I use for my Player character (various sides of the body are set up as children and get activated based on the current direction).

I am trying to add animation events in animations for this object. I add the cutscene component to the parent and then add the event in the animation. But when I want to select Cutscene - Interact, the Interact option is missing.

This however works in the Player prefab. And of course, it works when the object is not parented (however I have these animations made with the parent hierarchy and do not want to manually reset all the bones and sprites locations).

What is causing this? What puzzles me is that the Player prefab is set up exactly the same way and there it works with no issue.

Comments

  • edited February 4

    Are you selecting the Cutscene component, or the script? Best to see screenshots of the issue.

  • Of course, here they are. So this is the hierarchy of the object in question. Animator and Cutscene attached to the "Ven z diry" Parent. You can see the two rig children, one expanded.

    Here is the detail of the parent's Inspector:

    When I create an event in one of the animations, the Cutscene is missing the Interact option.

    And here for comparison, is the Player prefab. Same design. Animator and Cutscene on "Hrdina rig" with various rig children with respective animations. When I create an animation event there, the Interact option is present.

  • This looks like an issue with Unity itself.

    Try relying on an ActionList Starter component, and have the event run its RunActionList function instead.

  • Thank you for the tip, will try it out.

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.