# Scaling Uma Character Unity 3d

My room is bigger than my UMA character so on spawn my character looks tiny. I have found this link: http://answers.unity3d.com/questions/988134/uma-how-to-increase-npc-avatar-scale.html

but everywhere I put my code, it does not change my avatars features. Here is my code:

using UnityEngine;
using System.Collections;
using UMA;

public class UMACreator1 : MonoBehaviour {
public UMAGeneratorBase generator;
public SlotLibrary slotLibrary;
public OverlayLibrary overlayLibrary;
public RaceLibrary raceLibrary;
public RuntimeAnimatorController animator;

[Range(0.0f, 1.0f)]
public float bodyMass = 0.5f;

private int numberOfSlots = 20;

void GenerateUMA()
{

GameObject go = new GameObject("MyUMA");

CreateMale();

go.transform.parent = this.gameObject.transform;

go.transform.localPosition = Vector3.zero;
go.transform.localRotation = Quaternion.identity;

}

void CreateMale()
{
umaRecipe.SetRace(raceLibrary.GetRace("HumanMale"));

}

// Use this for initialization
void Start () {
GenerateUMA();
}

// Update is called once per frame
void Update () {
{
SetBodyMass(bodyMass);
}
}

void SetBodyMass(float mass)
{
}
}


And here's the image. I want him to be as big as the chair

I had my UMA as a child to a game object. I wrote a script attached to the game object that changed the transform size to a set Vector3 in the update function (I think you have to change the transform value after the UMA is generated).

 private Vector3 usualSize = new Vector3(3, 3, 3);
private bool isFirstUpdate=true;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
if(isFirstUpdate)
{
this.gameObject.transform.localScale = usualSize;
isFirstUpdate=false;
}
}

• Scaling objects is not a good idea in terms of built-in unity physics, but scaling objects in 'Update' every frame is even worse. – Exerion Oct 5 '15 at 5:52
• @Exerion I have fixed the every frame issue. But I don't understand your first point and how to solve it. – Seth Kitchen Oct 5 '15 at 13:16
• Let me explain. We have a bad model of a tank that imported from 3D editor in scale of 1-to-1 and it looks tiny. You scale that model by 10 and assign mass of 3000 units. And we have normal tank. Both tanks have equal visible size, both have equal mass. But then you collide them or make any other physics-based action - the scaled tank will fly into the sky or be like monolith immovable mountain, what looks weird. It's because scaling is break unity physics. By default 1 unit of scale = 1 meter and 1 unit of mass = 1 kilogram, you need to stick with it. – Exerion Oct 5 '15 at 13:50
• By the way, you did not fixed every frame problem, 'cause isFirstUpdate is always true. – Exerion Oct 5 '15 at 13:50
• i had the same problem. The Update() fix it ! Thanks. – demosthenes Nov 19 '15 at 19:51

I had the same problem with Unity3D 2019 and Uma 2

I finally found the solution in this video : UMA FAQ #3: How do I make Males & Females the same size?

Go to the asset: UMA > Content > UMA_Core > HumanMale > DNA > HumanMaleDNAConverterController.asset

In the OVERALL MODIFIERS modify the Scale in Adjust Scale