[ad_1]

I’ve created a challenge to breed the issue I am at present dealing with.
I am working a easy unity animation that strikes a recreation object and anticipate to have the ability to reset the gameobject place. This may be carried out by including an empty animation, that (because it doesn’t change something) merely writes the default values, thus returning our gameobject to its authentic place.

However right here is the place issues get sophisticated: if the animator gameobject is ready inactive whereas the animation is working, new incorrect defaults values will probably be saved when gameobject is activated, and I’m unable to reset my gameobject place.

To breed this situation, run the connected challenge:
(Obtain from right here)

  1. Change the cease technique to “PlayEmpty”
  2. Hit Begin Animation and watch the left “Good day world” textual content journey.
  3. Whereas it’s touring, click on Disable Textual content GO. The left textual content disappears.
  4. Click on Allow Textual content GO and see the textual content comes again at its final location.
  5. Click on Begin Animation and watch the left “Good day world” textual content journey.
  6. Click on Cease Animation – the textual content is returned to the place the place it was when enabling the gameobject, somewhat than its authentic place.

Any assistance is welcome, options on the way to change the code to make the above state of affairs work.

Thanks,
Yaniv

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *