spatialos/UnrealGDK

Replicated properties within DEBUG or WITH_EDITORONLY_DATA macros not supported

m-samiec opened this issue · 0 comments

Description

The UnrealGDK requires schema to interoperate between the Unreal networking stack and the SpatialOS networking stack. Schema is generated by referencing Unreal's reflected data within the editor. If there are replicated properties within UObjects that get stripped out at runtime (ie. via the WITH_EDITORONLY_DATA macro), then the generated schema won't match the Object's layout at runtime, and instability will occur.

Workaround

Don't add replicated data within preprocessor macros that may be compiled out at runtime.

Tracking issue

UNR-917