Search Unity

Question Need simplest example of 2d sprite snapping to mesh

Discussion in 'AR' started by eco_bach, Feb 12, 2021.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Can anyone point me to a simplest (ARkit) example of snapping a 2d sprite to mesh based on wherever the device camera is pointing?

    ie reticle that rotates to the surface of whatever is hit by a Raycast.

    I know it also involves TrackableTypes>
    https://forum.unity.com/threads/difference-between-plane-trackabletypes.623956/

    but can't get anything to work on both floor and ceiling meshed surfaces.
    Any help appreciated!
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820