Issue category: ARDK Documentation
Device type & OS version: Android
Host machine & OS version: Windows
ARDK version: 1.0.1
Unity version: 2020.3.22f1
Description of the issue: I’m trying to follow this tutorial about detecting planes. Inside the loop of
AnchorsAdded function this line doesn’t work for me
gameObject.transform.localScale = anchor.Extent;
There is no variable or property named
Extent according to my editor. What might I be doing wrong in this situation?
It looks like Extent is available on the IARPlaneAnchor subclass. The AnchorType == AnchorType.Plane test ensures you’re working with a plane anchor, so you might need to cast anchor to an IARPlaneAnchor.
Thanks very much! Explicitly defining a type to my anchor variable like below fixed the problem
foreach (IARPlaneAnchor anchor in args.Anchors)
Thanks Layso, I’ll log an item to clarify this in the tutorial doc as well.
This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.