C API Unity API
Unity API Reference (Version 10.22.5)
ContentPositioningBehaviour Class Reference

This class provides convenience methods for anchoring content in the real world. Can be used in combination with the PlaneFinderBehaviour or MidAirPositionerBehaviour to easily place content on a plane or at 3d coordinates More...

Inheritance diagram for ContentPositioningBehaviour:
SmartTerrainBehaviour VuforiaMonoBehaviour

Public Member Functions

void PositionContentAtMidAirAnchor (Transform pose)
 Anchors the transform at it's current position in the real world for increased tracking stability More...
 
void PositionContentAtPlaneAnchor (HitTestResult hitTestResult)
 Anchors the transform at an intersection point with a real world plane for increased tracking stability More...
 

Public Attributes

AnchorBehaviour AnchorStage
 
bool DuplicateStage = true
 
ContentPlacedEvent OnContentPlaced
 

Detailed Description

This class provides convenience methods for anchoring content in the real world. Can be used in combination with the PlaneFinderBehaviour or MidAirPositionerBehaviour to easily place content on a plane or at 3d coordinates

Member Function Documentation

◆ PositionContentAtMidAirAnchor()

void PositionContentAtMidAirAnchor ( Transform  pose)
inline

Anchors the transform at it's current position in the real world for increased tracking stability

◆ PositionContentAtPlaneAnchor()

void PositionContentAtPlaneAnchor ( HitTestResult  hitTestResult)
inline

Anchors the transform at an intersection point with a real world plane for increased tracking stability

Member Data Documentation

◆ AnchorStage

AnchorBehaviour AnchorStage

◆ DuplicateStage

bool DuplicateStage = true

◆ OnContentPlaced

ContentPlacedEvent OnContentPlaced