Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UClass
Description
Initializes the ClassReps and NetFields arrays used by replication. This happens lazily based on the CLASS_ReplicationDataIsSetUp flag, and will generally occur in Link or PostLoad. It's possible that replicated UFunctions will load after their owning class, so UFunction::PostLoad will clear the flag on its owning class to force lazy initialization next time the data is needed. Also happens after blueprint compiliation.
| Name | SetUpRuntimeReplicationData |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp |
void SetUpRuntimeReplicationData()