FARKitMeshData

Represents a cached version of the data coming from an ARKit mesh anchor

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AppleARKit

Header

/Engine/Plugins/Runtime/AR/AppleAR/AppleARKit/Source/AppleARKit/Public/AppleARKitMeshData.h

Include

#include "AppleARKitMeshData.h"

Syntax

class FARKitMeshData : public IMRMesh::FBrickDataReceipt

Remarks

Represents a cached version of the data coming from an ARKit mesh anchor

Destructors

Name Description

Public function

~FARKitMeshData()

Functions

Name Description

Public function Static

void

 

ClearAllMeshData()

Clears the cached data for all the mesh anchors

Public function

bool

 

GetClassificationAtLocation

(
    const FVector& InWorldLocation,
    const FTransform& InLocalToWorldTr...,
    uint8& OutClassification,
    FVector& OutClassificationLocation,
    float MaxLocationDiff
)

Gets the object classification for a location in the world space See UARBlueprintLibrary::GetObjectClassificationAtLocation

Public function Static

MeshDataPtr

 

GetMeshData

(
    const FGuid& InGuid
)

Returns the cached data for a particular mesh anchor, identified by the GUID

Public function Static

void

 

RemoveMeshData

(
    const FGuid& InGuid
)

Removes the cached data for a particular mesh anchor, identified by the GUID

Public function Static

void

 

UpdateMRMesh

(
    const FTransform& MeshTransform,
    MeshDataPtr MeshData,
    UMRMeshComponent* InMeshCompon...
)

Updates a MR mesh with the data cached in a particular mesh data object

Typedefs

Name

Description

MeshDataPtr

Constants

Name

Description

CachedMeshData

Global cached mesh data records, one for each anchor

GlobalLock

Lock protecting the access to CachedMeshData