Unity newb, but intermediate developer. It appears transform.scale doesn’t actually exist. In my game, I need the visual appearance of something to scale up and down arbitrarily. How can I accomplish this?
You want that maybe?
Hello…!
using UnityEngine;
using System.Collections;
public class test : MonoBehaviour
{
void Update()
{
Vector3 mi = transform.localScale;
mi.y += Input.GetAxis ("Horizontal");
mi.x += Input.GetAxis ("Vertical");
transform.localScale = mi;
}
}