Sitemap

Create Main Menu to AR App.

2 min readApr 17, 2025

Objective: Create Main Menu for AR App.

Go to Hierarchy Create UI component called Canvas, Set Render Mode to Screen Space Overlay. Set UI Scale Mode to Scale With Screen Size and Match to (0.5).

Create three buttons rename two of them according to your object then parent them to empty game Object, add parent game Object component called Horizontal Layout Group. Adjust an option on Horizontal Layout Group <Child Alignment to Lower Center.

Now we want to start with plus button, we we hit plus button we need to disable plus button and enable the two button. But by default those Item buttons need to be disabled.

We do this using Unity event in Adding_Item_Button.

Now when we press cube button we need to set Placement Prefab from to specific button item.

When we place Object we need to disable the the other button and enable the Adding_Item_Button, Last we need to set Placement prefab to none on AR Placement Interactable.

Now build your app to android and try the app ,see you in the next one.

--

--

Suleiman Abdullah
Suleiman Abdullah

Written by Suleiman Abdullah

Self taught Unity Developer, who is passion about making games ,and he loves Math For Game Development

No responses yet