Description

UHT will only emit the REPLICATED_BASE_CLASS macro and set the NeedsPushModelHeaders flag when the class has replicated properties. If a base class doesn't have any replicated properties, it will lead to the check in UObject::SetNetPushIdDynamic being hit when attempting to replicate an object whose class is derived from this base class.

Steps to Reproduce

See attached repro project.
Create a base class (deriving from UObject) with no replicated properties.
Create a BP class deriving from this base class with replicated properties.
With push model enabled, create a replicated instance of this derived BP object.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-187843 in the post.

1
Login to Vote

Unresolved
ComponentUE - Networking
Affects Versions5.3
Target Fix5.6
CreatedJun 5, 2023
UpdatedOct 25, 2024
View Jira Issue