Home

Published

- 1 min read

How to make a GameObject Bigger in C# unity

img of How to make a GameObject Bigger in C# unity

The solution for this is noted below

How to make a GameObject Bigger in C# unity

Solution

   public GameObject objectToResize;
//                     ^^^^^ Name of GameObject
void IncreaseSize() {
    objectToResize.transform.localScale += new Vector3(1, 1, 1);
                                                   Size ^^^^^
}

Try other methods by searching on the site. That is if this doesn’t work