Answer the question
In order to leave comments, you need to log in
Why is the object not reduced by 2 times?
Why is the object not reduced in size by 2 times?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public GameObject obj;
void Start()
{
}
void OnMouseDown()
{
obj.transform.localScale = new Vector3(transform.localScale.x / 2f,
transform.localScale.y / 2f, transform.localScale.z / 2f);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question