Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Attack customizer and assignment

Discussion in 'Scripting' started by RiceCorn, Jun 11, 2019.

  1. RiceCorn

    RiceCorn

    Joined:
    May 10, 2019
    Posts:
    2
    Hello, Unity Community!

    I have been having a little trouble with trying to figure out a method to solve the following problem:

    I am developing a multiplayer fighting game where you can assign up to four attacks to your character.
    I am, however, not sure how to update the Animator since new attacks and animations will be updated to the game during the runtime of my game in the future.

    Here is a visual example of what I need from the android game called "smash supreme":


    I would be very thankful for some advice.

    -Best regards
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,514
    The reference way to deliver future content in Unity is to use asset bundles.

    To get a feel for them, I suggest you package up a small portion of your game (perhaps all the assets related to a single character) as an asset bundle, then modify your game to download it and use it.

    Once you do that it will easy to substitute out other characters with different animations.
     
  3. RiceCorn

    RiceCorn

    Joined:
    May 10, 2019
    Posts:
    2
    Interesting. Thank you for the replay!