By fang001
on Tue, 08/04/2020 - 13:52
How to GroundPlane Change place Object LocalScale? this is code .
using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { GameObject rotater; void Start () { rotater = GameObject.Find("GameObject"); } void Update() { } void OnGUI() { if (GUI.RepeatButton (new Rect (250, 250, 250, 250), "Check here")) { rotater.gameObject.transform.localScale += new Vector3(0.1f,0.1f,0.1f); } } }
When I press the button, the scale of the object changes but the size of the placed object does not change.
Help me thanks.