Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Variable Dependent Animation

Discussion in 'Animation' started by maormenashe, Feb 1, 2019.

  1. maormenashe

    maormenashe

    Joined:
    Oct 7, 2018
    Posts:
    20
    Hello,
    I was wondering if there is any way to use script variables with animations?
    Lets say i have an animation that changes the scale of the object, currently to a fixed value, and i want it to be dynamic by a variable that i have in a script.
    Is that possible?

    Thanks :)
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,491
    ... Why can't your script just change the scale of the object?
     
  3. maormenashe

    maormenashe

    Joined:
    Oct 7, 2018
    Posts:
    20
    It was just an example... it could vary.
    I know i can manage and create my own animation with script, but Unity made animation system for us and i asked if it can be variable dependent. (Unity Animation System)
     
  4. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,491
    Look up Blend Trees. That probably fits your definition of "variable dependant".