Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Depthkit 2.5D volumetric Prefab not sticking to planes in ARfoundation

Discussion in 'AR' started by Dirrogate, Dec 24, 2020.

  1. Dirrogate


    Feb 18, 2014
    Hi All.
    I'm not a coder, but have been looking at the many examples of "Tap to place objects" already on the internet.
    TL;DR: All script/solutions seem to want you to create a prefab to instantiate. Is there any possible way that an already playing game object can be clicked on to be re-positioned on detected horizontal planes?
    I'd be very grateful for a script example.

    Background: Depthkit ( is a semi volumetric solution that creates a mesh at runtime that get tesselated/heightmapped with a 2Dvideo+depthmap shader.
    As a result --- and I'm guessing,--- making such a runtime mesh into a prefab to spawn via a "Tap to place object" script using AR foundation and ARcore, is not working. What's happening is, it does spawn, but then does not lock to detected planes.
    If anyone wants a demo clip/plugin I can upload. Or, with a free registration at they have the plugin and a sample to download for free

    If someone can help with a script that does not need prefab spawning, but a way that an already existing game object can be clicked on to be re-positioned on detected horizontal planes, I'll try to adapt it with my limited skills.

    Kind Regards