Class SpongyAnchorVisual
Component for controlling location, visual appearance and ID text of a spongy anchor visualization.
Namespace: Microsoft.MixedReality.WorldLocking.Tools
Assembly: cs.temp.dll.dll
Syntax
public class SpongyAnchorVisual : MonoBehaviour
Remarks
Spongy anchors are visualized by a concentric pair of an outer ring and an inner disc The outer ring of fixed size indicates the state of the spatial anchor by its color:
green: support(area of inner circle indicating relevance) red: support with zero relevance yellow: not a support gray: anchor not located(i.e.currently not part of spongy world)
The inner disc indicates the relevance of the spongy anchor (0..100%) by its area.
Methods
Instantiate(FrameVisual, SpongyAnchor, Single)
Create a visualizer for a spongy anchor.
Declaration
public SpongyAnchorVisual Instantiate(FrameVisual parent, SpongyAnchor spongyAnchor, float verticalDisplacement)
Parameters
Type | Name | Description |
---|---|---|
FrameVisual | parent | Coordinate space to create the visualizer in |
SpongyAnchor | spongyAnchor | The spongyAnchor component assigned to some other object that this object is supposed to sync with |
Single | verticalDisplacement |
Returns
Type | Description |
---|---|
SpongyAnchorVisual |
SetNoSupport()
Declare as not being a support.
Declaration
public void SetNoSupport()
SetSupportRelevance(Single)
Set the relevance, which sets the color.
Declaration
public void SetSupportRelevance(float relevance)
Parameters
Type | Name | Description |
---|---|---|
Single | relevance | The new relevance |