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

Animation docs Interpretation

Discussion in 'Animation' started by unity_W3rLGozcKkUuGg, Sep 27, 2019.

  1. unity_W3rLGozcKkUuGg

    unity_W3rLGozcKkUuGg

    Joined:
    Apr 25, 2019
    Posts:
    11
    Into Unity's documentation about the Animation System, there's a section called Performance and Optimization.

    Among the topics there's on extremely vague called Scene-level optimization
    I took a couple of minutes trying to think on cases or examples for each one trying to figure out what exactly they mean so I decided to share here this part of the doc so our community can link some examples and try to explain better each topic.

    Please guys, feel free to post what you understand of any of those topics a link some references.

    "Scene-level optimization

    There are many optimizations that can be made, some useful tips include:

    • Use hashes instead of strings to query the Animator.
    • Implement a small AI Layer to control the Animator. You can make it provide simple callbacks for OnStateChange, OnTransitionBegin, and other events.
    • Use State Tags to easily match your AI state machine
      to the Unity state machine.
    • Use additional curves to simulate events.
    • Use additional curves to mark up your animations; for example, in conjunction with target matching"
      .