Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FNetRootObjectAdapter
Description
Every object needs to be assigned to a ULevel to know which UWorld->ReplicationSystem it will be added to. The level will also be used to set level filtering logic to replicate the object only to clients that loaded the level locally. This must be called early if your object will be replicated conditionally via RelevantWith Note: if you don't have a specific level you can use the World->PersistentLevel.
| Name | SetAttachedLevel |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/Iris/ReplicationSystem/NetRootObjectAdapter.h |
| Include Path | #include "Net/Iris/ReplicationSystem/NetRootObjectAdapter.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Net/Iris/ReplicationSystem/NetRootObjectAdapter.cpp |
void SetAttachedLevel
(
ULevel * Level,
ELevelValidation LevelValidation
)
Parameters
| Name | Remarks |
|---|---|
| Level | The level under which the object resides |
| LevelValidation | Use this to skip unecessary validations |