channeldorg / channeld-ue-plugin

Enables distributed simulation with Unreal Engine's dedicated servers. 为虚幻引擎专用服务器提供分布式模拟能力的开源插件.
Apache License 2.0
132 stars 38 forks source link

Components that do not have replication enabled are also forced to depend #25

Closed Augkit closed 1 year ago

Augkit commented 1 year ago

WeChat Image_20230520092616 I didn't turn on replication for BP_TestNPC's static mesh, but the schema editor still shows a dependency on static mesh

indiest commented 1 year ago

Any replicated ActorComponent (has replicated property or RPC) will have its corresponding state generated in the replication cache.

If a replicated Actor(B) owns a replicated ActorComponent(AC) directly, adding the actor's state will also add the ActorComponent's state (this is what we called "dependency"); if AC is owned by actor A which is the parent class of B, and A is not a replicated Actor, there will be no dependency as A's state doesn't exist.