How can I increase / decrease the size of objects in Unity?
Example:
public GameObject sprite;
public  float scale = 2.0f;
void ScaleResolution()
{
    sprite = sprite*scale; //epic string!
}
How can I increase / decrease the size of objects in Unity?
Example:
public GameObject sprite;
public  float scale = 2.0f;
void ScaleResolution()
{
    sprite = sprite*scale; //epic string!
}
 
    
    It's a property of the transform component
sprite.transform.localScale = new Vector3(2.0f, 2.0f, 2.0f);
 
    
    Position, Rotation & Scale are properties of transform so you need to modify if as follows:
public GameObject sprite;
public float scale = 2.0f;
void ScaleResolution()
{
sprite.transform.localScale = new Vector3(scale, scale, scale);
}
