Unity ARKit By Example: Part 4

  • We subscribe to three Unity-ARKit-Plugin image anchor events; added, updated, and removed
  • For the most part, this script is self-explanatory; except it turns out the removed event is never fired. When the image is out of view of the camera viewfinder, an updated event with the isTracked property equal to false is triggered
  • We can leave the bundle identifier as we had before
  • Make sure to only include the ImageAnchor scene in the build
  • Cube: The prefab to generate
  • Dumbbell: The point cloud of the dumbbell
  • DumbbellDetector: The script (below)
  • ObjectAnchor: The scene
  • RefObj: The reference object
  • RefObjsSet: The reference objects set
  • This code is very similar to the image tracking example; basically we are responding to object instead of image events
  • The objects are not tracked in the same way images are, e.g., moving the dumbbell around does not move the GameObject
  • Found the object detection to be fussy; have to get the object in the same lighting for the detection to work
  • For whatever reason, could not get a public ARReferenceObjectAsset to be visible in the component inspector; instead exposed a string (referenceObjectName)
  • Plane detection (horizontal and vertical)
  • ARWorldMap; persistence and/or sharing of AR experiences
  • Face detection and tracking




Broad infrastructure, development, and soft-skill background

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The journey to be googler day388

Webscraping PDFs with R For Business

Why government employees should try GitHub

The District Weekly — April 4th

R_Spec Represent Array Iteration and Manipulation Beginner Edition

KeyMesh : Claymation with Blender

Traffic Director by Example: Part 2

Write DRY Code Using Reflection

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
John Tucker

John Tucker

Broad infrastructure, development, and soft-skill background

More from Medium

How to Authenticate Users in Next.js with Asgardeo

Performance Testing via Artillery.io

[Part0]Trying to build a clone of skribbl.io

Decentralized Webpack Configuration