Log in or register to post comments

How to GroundPlane Change place Object localscale?

August 4, 2020 - 6:24am #1

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.

AttachmentSize
Image icon 11111.png66.91 KB
Log in or register to post comments