AARSharedWorldGameState

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

class AARSharedWorldGameState : public AGameState

Variables

Name Description

Public variable

int32

 

ARWorldBytesDelivered

The amount of the AR world data that has been replicated to this client so far

Public variable

int32

 

ARWorldBytesTotal

The size of the AR world data that will be replicated to each client

Public variable

TArray< uint8 >

 

ARWorldData

Each client and the host have a copy of the shared world data

Public variable

int32

 

PreviewImageBytesDelivered

The amount of the preview image data that has been replicated to this client so far

Public variable

int32

 

PreviewImageBytesTotal

The size of the image that will be replicated to each client

Public variable

TArray< uint8 >

 

PreviewImageData

Each client and the host have a copy of the shared world data The image taken at the time of world saving for use when aligning the AR world later in the session

Constructors

Name Description

Public function

AARSharedWorldGameState

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

InitSharedWorld

(
    int32 PreviewImageSize,
    int32 ARWorldDataSize
)

Used to setup the initial values and size the arrays (client)

Public function

void

 

K2_OnARWorldMapIsReady()

Public function

void

 

UpdateARWorldData

(
    int32 Offset,
    const uint8* Buffer,
    int32 Size
)

Copies the buffer into the AR world data (client)

Public function

void

 

UpdatePreviewImageData

(
    int32 Offset,
    const uint8* Buffer,
    int32 Size
)

Copies the buffer into the image data (client)

References

Module

AugmentedReality

Header

Runtime/AugmentedReality/Public/ARSharedWorldGameState.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback