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. Dismiss Notice

Mecanim "Optimize Game Object" and scaling

Discussion in 'Animation' started by Velo222, Mar 24, 2014.

  1. Velo222

    Velo222

    Joined:
    Apr 29, 2012
    Posts:
    1,437
    I still have not found an answer on this issue.

    I tested scaling a character to a non-uniform scale (i.e. Scale: x: 3, y: 1, z: 3) before I checked the "Optimize Game Object" box on the model's import rig settings (using mecanim). Once I checked "optimize game object" and hit apply, the model becomes scrunched and stretched in weird scaling, even though the model is still wholly intact.

    I then tested putting the model's transform scale to an even/uniform x: 1, y: 1, z: 1. And then reapplied "optimize game object" and the model looked good, with no stretching and it looked normal. But, AFTER optimizing the game object, when I tried a non-uniform scale, the scaling causes the model to look terribly stretched UNLESS I scale it uniformly in all directions.


    In short, and my main point, is that non-uniform scaling of characters doesn't seem to work at all when using the "optimize game object" option. Can anyone confirm/deny this? It would have been nice if there was a heads up that you can only optimize mecanim game objects IF you use uniform scaling. To me, this is the entire reason I decided to try mecanim, was because of the extremely large amount of performance gain I get with "optimizing" the model's rig. However, not being able to use a non-uniform scale on the models is a huge drawback.

    Again, can anyone confirm/deny this for me?
     
    lang_fox likes this.
  2. lang_fox

    lang_fox

    Joined:
    May 19, 2014
    Posts:
    13
    Yes, this problem will be caused in UI especially.
     
  3. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    It should be fixed in 5.4 and 5.5

    Generic rig with optimized game object and non uniform scaling should work.
    Humanoid rig and non uniform scaling doesn't work, you can put an non uniform scale on the root but there is many thing that could break, like IK and root motion.
     
  4. godbonny

    godbonny

    Joined:
    Sep 1, 2016
    Posts:
    1
    does this fixed now ?
     
  5. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    it should already work in 5.4 and 5.5, so if you still have issue please log a bug