Search Unity

Question Adding Unity Animation Events With Visual Scripting

Discussion in 'Visual Scripting' started by HAMSOFT, Jan 31, 2023.

  1. HAMSOFT

    HAMSOFT

    Joined:
    May 31, 2020
    Posts:
    32
    Hiii, is there a way in which I can add animation events in a certain frame using visual scripting events?

    I need to execute a "Shoot" function on the fisrt frame of a shooting animation, but I am unable to do it work.
    upload_2023-1-30_21-12-46.png
    This is the function, is on the weapon graph:
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,079
    Last edited: Jan 31, 2023
  3. HAMSOFT

    HAMSOFT

    Joined:
    May 31, 2020
    Posts:
    32
    How could I do that?
     
  4. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,079
    Follow the instructions in the link to set up the Animation event and then connect both to the if node that starts your logic.
     
  5. HAMSOFT

    HAMSOFT

    Joined:
    May 31, 2020
    Posts:
    32
    The documentation doesn't explain how to use them
     
  6. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,079
  7. HAMSOFT

    HAMSOFT

    Joined:
    May 31, 2020
    Posts:
    32
    And there is no documentation explaining how to use the Animation Event node?
     
  8. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,079
    The first link does somewhat.

    What is your problem specifically?
     
    HAMSOFT likes this.
  9. HAMSOFT

    HAMSOFT

    Joined:
    May 31, 2020
    Posts:
    32
    THankss