Method MakeContentAppearAt
MakeContentAppearAt(Transform, Vector3, Quaternion)
Makes content
appear to be placed at position
with orientation rotation
.
Declaration
public void MakeContentAppearAt(Transform content, Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Transform | content | The |
Vector3 | position | The position you wish the content to appear at. This could be a position on a detected plane, for example. |
Quaternion | rotation | The rotation the content should appear to be in, relative
to the |
Remarks
This method does not actually change the Transform
of content; instead,
it updates the ARSessionOrigin
's Transform
so the content
appears to be at the given position and rotation. This is useful for placing AR
content onto surfaces when the content itself cannot be moved at runtime.
For example, if your content includes terrain or a NavMesh, it cannot
be moved or rotated dynamically.
MakeContentAppearAt(Transform, Vector3)
Makes content
appear to be placed at position
.
Declaration
public void MakeContentAppearAt(Transform content, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
Transform | content | The |
Vector3 | position | The position you wish the content to appear at. This could be a position on a detected plane, for example. |
Remarks
This method does not actually change the Transform
of content; instead,
it updates the ARSessionOrigin
's Transform
so the content
appears to be at the given position.
MakeContentAppearAt(Transform, Quaternion)
Makes content
appear to have orientation rotation
relative to the Camera
.
Declaration
public void MakeContentAppearAt(Transform content, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
Transform | content | The |
Quaternion | rotation | The rotation the content should appear to be in, relative
to the |
Remarks
This method does not actually change the Transform
of content; instead,
it updates the ARSessionOrigin
's Transform
so that the content
appears to be in the requested orientation.