animation clip events don't fire

Slate Forums Support animation clip events don't fire

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1304
    itsallgoodgames
    Participant

    hey i notice playing animation clip in animator track doens’t fire “events” inside animation clip.

    Is this bug? or by design. I tried it in play mode.

    #1305
    itsallgoodgames
    Participant

    i use the events to play footstep audio clips in sync with the animation.
    In Slate audio track there’s no convenient way to sync to animation like in the actual animation window, because i may change playback speed of walking animation which would mean i have to adjust placement of footstep audio clips in audio track, plus the event calls a function to play a random footstep sound which is already beyond slate audioclip functionality anyway at the moment.

    Maybe if it was possible to place slate clips fast on a track with preset spacing between clips. But for now if events will do fine once i figure out how to play them through slate.

    Perhaps i can just use Unity Event action clip to play and stop the animation using the actual animator. I’ll do more research.

    #1306
    itsallgoodgames
    Participant

    so technically i can use slate event clip to call the random footstep sound function, but its still a lot of manual work to sync with animation.
    ooh maybe i can just create a looping footstep sound function with repeat timing in sync with footstep animation.
    This way i don’t have to copy and paste over and over again and manually sync the audio playing function.

    Attached image shows what im talking about. The event clips are equal distance from each other, future feature to make easier to sync somehow?

    Attachments:
    You must be logged in to view attached files.
    #1308
    itsallgoodgames
    Participant

    well i created decent solution, i have start and stop functions, so i only need 2 event clips.
    It won’t play sound in editor testing but at least it works lol
    i dont have the skillz to create a custom action clip to do this stuff so it’s ok.

    Attachments:
    You must be logged in to view attached files.
    #1310
    Gavalakis
    Keymaster

    Hey,

    Unfortunately, Animation events are not possible within Slate neither by design, nor by bug. It is just that Unity Playables API (which Slate is using to playback animation) does not (yet) support animation events to my knowledge and I really hope that they do in the future.
    Regarding placing multiple clips at equal time distance, I could certainly look at such an option to “Quantize” a multi selection of clips like that.
    I think that at least until Unity Playables API supports animation events, what you have done is probably the best solution, unless you have anything to suggest me for implementing that would make this easier 🙂

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #1316
    itsallgoodgames
    Participant

    thanks its cool, my solution works fine for me.

    yes clip quantization would be a cool feature.
    Also copy pasting several clips at once from different tracks of the same gameobject would be really really useful as well.

    my usecase: i got 2 transform tracks, 1 for moving object, 1 for scaling. after its done i have 1 clip to reset trasnform values. I wanna repeat that combination of clips further down the timeline, but i have to copy paste the clips 1 by 1. if i could select them all and copy paste all at once it would save a lot of time!
    right now the only right click option is “delete clips”.

    #1323
    Gavalakis
    Keymaster

    Hey,

    Thanks. Glad that it works for you as of now.
    Hmm. As far as copy/pasting multiple clips, that is really very tricky to get right. I have some ideas how to implement this though 🙂
    I have just noted your suggestion down and see what can be done!
    Thank you 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.