How to place objects on the floor without tapping on the screen?

  • Unity version: 2020.3.17f1
  • ARDK version: 1.2.0
  • Device type & OS version: Android - OnePlus 9 Pro
  • Host machine & OS version: Windows 10

Description of the issue:

Hi All, I am developing one demo application using the LightShip SDK. In that demo, I am placing objects on the floor using the Basic Placement Tutorial(Niantic AR Development Kit (ARDK): Basic Placement Tutorial).

I want to place the objects on the floor immediately after the planes generation (i.e. Without tapping on the screen I want to place the objects on the floor immediately after the planes generation).

Can anyone please help me or share some of the references for these issues?

Thanks in advance.

Maybe just send the placement raycast every second or something in a coroutine and keep going until it is placed?
Otherwise you have to look into the code from lightship, which can be complex

Hi @Dylan_Smit, Thank you so much for your response. I will try the suggestion provided by you and I will get back to you.

Hello Akhil,

Can you please take a look at the Advanced Meshing: Garden Chunks tutorial? In this tutorial, Garden mesh generates automatically based on viable surfaces within a specified tolerance. You need to start with the Meshing Tutorial: Getting Started as a prerequisite.

Hopefully, the above information helps, and please let us know how it works for you.

Hello @Umaiya_Doddamani1, Thank you so much for your response. I will try the suggestions provided by you and I will get back to you.