How to Instantiate GameObjects wherever the mesh gets generated with the Meshing feature?

  • Unity version: 2019.4.25f1 LTS
  • ARDK version: 1.1.0
  • Device type & OS version: Android - OnePlus 9 Pro
  • Host machine & OS version: Windows 10

Hi All, I am in the process of building one demo using a Meshing feature in that I need some help for the following scenario:

Scenario: I need to Instantiate GameObjects wherever the mesh gets generated.

For Example: Suppose if the mesh gets generated on wall or glass or Monitor, etc the cube should be instantiated in front of wall or glass or monitor, etc.

I haved tried this by using Raycast but everytime I am not getting the hit points.

Can anyone please help me with how I can Instantiate GameObjects?

Thank you.

1 Like

Hi Akhil, have you checked out the garden chunks meshing tutorial? There is an embedded video that should be of help!

Hi Kevin_W_Young, Thank you so much for your help. I am trying the solution that is provided by you I will get back to you if I need any further help.

Thank you.