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

For the love of gawd, HOW??

Discussion in 'Animation' started by Gnaws, Oct 5, 2013.

  1. Gnaws

    Gnaws

    Joined:
    Jul 1, 2008
    Posts:
    43
    HOW do you make THIS?

    I've looked and looked on the Asset Store, YouTube, etc. I assumed somebody would have shown how to make such a tool to sell characters/assets in the Asset Store.

    I'm not looking for how to make the animations. Just how to make the UI and how it controls the characters.

    (hyper-ventilating)
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Stop hyperventilating, it's just some basic scripting with OnGUI code and Animation.Play. ;)

    Code (csharp):
    1. if (GUILayout.Button ("attack0")) {
    2.     animation.Play ("attack0");
    3. }
    More or less. What they have is a little more complicated than that, but you can at least start there.

    --Eric
     
  3. Gnaws

    Gnaws

    Joined:
    Jul 1, 2008
    Posts:
    43
    Thank you, Eric. That's a great start - for which I had no idea where to begin.

    Many Thx, Bro
     
  4. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    Ya but hyper-ventilation is fun. Especially when you begin to lose feeling in your arms. It makes it a little more difficult to play games though.
     
  5. Gnaws

    Gnaws

    Joined:
    Jul 1, 2008
    Posts:
    43
    When I do it (like now trying to sync a script to an object) I feel like I've done six Percocets + 3 Heinekins.

    Good buzz but I gotta stay off my scooter.