Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

How to make animation event on kick trigger ?

Discussion in 'Animation' started by gardevoirea, May 13, 2017.

  1. gardevoirea


    May 12, 2017
    Hi , i new on unity , and want ask how to give my character an animation event when he kick enemy , um here my script and animator :

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;

    public class miu : MonoBehaviour {

    public delegate void AnimationEvent();
    public static event AnimationEvent OnslashAnimationHit;

    void SlashAnimationHitEvent(){
    print ("event called");
    OnslashAnimationHit ();



    i want give an explode when my character hit enemy ,


    help me please :`)

    Attached Files: