LAR
LAR

Reputation: 43

How to develop android application using ARCore in Unity?

Im new in developing ARCore application. Im trying to develop but only 3D object appear after scan surface. I want UI button works and have animation when I click the button. Anyone can help me and have a tutorial step by step?

Upvotes: 1

Views: 58

Answers (1)

siusiulala
siusiulala

Reputation: 1060

For UIButton play animation:

public GameObject your3dGameObject
public void OnButtonClick()
{
     your3dGameObject.GetComponent<Animation>().Play("animationName");
}

And you can set the transform of canvas as a child of the 3DGameObject then the UIButton will appear/disappear with surface detecting.

Upvotes: 1

Related Questions