How to make 3D object appear bigger when clicked (for Android)?

I am currently making AR: Solar System. So, I want whenever one of the planets is clicked, I want the planet become bigger and start display the close button and the dropdown button that consist of info, and when click on close button, the planet will shrink back. I’ve tried to find any tutorial for this, but it’s not exactly what I want. Can anyone please help me?

You can try doing this:

-Create a script for your planet that contains a OnMouseDown() Function in it.
-Make a variable with the desired increase in size of the planet.
-Make a bool for saving if the planet has been clicked before.
-Inside of the OnMouseDown function you check the boolean, invert it, and change the scale of your object.

Here’s some code that should work.

[SerializeField] private float sizeDecrease = 1;
private bool hasBeenClicked;

private void OnMouseDown()
{
    if (!hasBeenClicked)
    {
        Vector3 scale = transform.localScale;
        transform.localScale = new Vector3(scale.x + sizeDecrease, scale.y + sizeDecrease, scale.z + sizeDecrease);
        hasBeenClicked = true;
    }
    else
    {
        Vector3 scale = transform.localScale;
        transform.localScale = new Vector3(scale.x - sizeDecrease, scale.y - sizeDecrease, scale.z - sizeDecrease);
        hasBeenClicked = false;
    }
}