Okay, final question about the Adventure Creator 2.5D tutorial (everything else from the tutorial is working perfectly for me. Very clear tutorial!).
Trying to add animation events to the HumanoidWalk .fbx file (in order to play footstep audio while walking), when I scroll to frame 224 in the animation (as per the tutorial around 1:04:40), and click the "Add Event" button, strange things happen:
- No event marker is added to the event timeline.
- The fields for Function through Object remain grayed out.
- Everything below the ‣ Mask option (including ‣ Motion, ‣ Import Messages, the grayed out Revert and Apply buttons, and ‣ Asset PostProcessors) but above the window with the animated figure vanishes, only to reappear when the window is scrolled.
Attempting to find a workaround for this, when I right click directly on the event timeline and select "Add Animation Event", the following occurs:
- The marker is (now) created on the event timeline.
- The fields for Function through Object are now editable.
- Editing any of the fields causes the items below the ‣ Mask option to vanish again; though, as before, they reappear after scrolling the window.
- However, any edits to any of the fields revert the instant the field is clicked out of. i.e., change the Function name to "PlayFootstep", then click or tab to another field, and the Function name reverts to "NewEvent." No other ways to try to force the Function name to save work: not exiting the field via creating a second event, scrolling (to restore the "Apply" button) then clicking Apply, or tabbing to another window; the Function name always reverts to "NewEvent."
Any ideas about what might be the cause here & how to resolve it?
Comments
You'll need to click Apply for such changes to be retained, but the window and event system is a part of Unity itself. If things are disappearing unexpectedly, it may be an issue with your version of Unity.
If you'd like to share a video showing the issue occuring I can see if anything sticks out, but as a fallback, AC's Footstep sounds component's Play sounds field can be set to Automatically to avoid the need to rely on events.
Hi Chris,
The Unity Editor version is 6000.2.0f1.
Here's a video showing the glitch:
https://imgur.com/a/eZvBKFw
If any thing sticks out, please let me know!
I've set up the automatic footsteps fallback. Works fine for walking (but it also plays footsteps when crouched, and these do not match up with footfalls at all).
Thanks. Yes, this does look like an issue with Unity.
The only thing that sticks to me out is the use of clipping for your start/end frames. As a test, try clearing them so that the full clip is referenced. Do events then persist?
Strange.
I removed the clipping on the animation, but still can't add events.
I also found a thread stating that imported animations (such as this one from the tutorial) may be read-only... so to duplicate the animation, then edit the duplicate. That also does not work though.
I guess for now it's automatic footsteps!