Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/UNetObjectFactory
Description
Optional callback triggered when a root object managed by this factory gets assigned a dynamic subobject. This callback is called on remotes only. At the time of the callback the RootObject will have the latest replicated properties set, but the subobject will only be default constructed and won't be assigned the replicated properties received alongside the creation request.
| Name | SubObjectCreatedFromReplication |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/NetObjectFactory.h |
| Include Path | #include "Iris/ReplicationSystem/NetObjectFactory.h" |
virtual void SubObjectCreatedFromReplication
(
UE::Net::FNetRefHandle RootObject,
UE::Net::FNetRefHandle SubObjectCreated
)
Parameters
| Name | Remarks |
|---|---|
| RootObject | The root object that owns the subobject |
| SubObjectCreated | The subobject that was just instantiated |