engine
 
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
FGuidReferences类 参考

References to Objects (including Actors, Components, etc.) are replicated as NetGUIDs, since the literal memory pointers will be different across game instances. 更多...

#include <GuidReferences.h>

Public 属性

FGuidReferencesMap * Array
 If this FGuidReferences instance is owned by an Array Property that contains nested GUID References, then this will be a valid FGuidReferencesMap containing the nested FGuidReferences.
 
TArray< uint8 > Buffer
 A copy of the last network data read related to this GUID Reference.
 
int32 CmdIndex
 The Property Command index of the actual property that references the GUID.
 
TSet< FNetworkGUID > MappedDynamicGUIDs
 GUIDs for dynamically spawned objects that have already been created.
 
int32 ParentIndex
 The Property Command index of the top level property that references the GUID.
 
TSet< FNetworkGUID > UnmappedGUIDs
 GUIDs for objects that haven't been loaded / created yet.
 

详细描述

References to Objects (including Actors, Components, etc.) are replicated as NetGUIDs, since the literal memory pointers will be different across game instances.

In these cases, actual replicated data for the Object will be handled elsewhere (either on its own Actor channel, or on its Owning Actor's channel, as a replicated subobject).

As Objects are replicated and received, these GUID References will become "mapped", and the networking system will update the corresponding properties with pointers to the appropriate objects.

As Objects are destroyed (due to game play, actor channels closing, relevancy, etc.), GUID References will be "unmapped", and their corresponding properties will nulled out.

The process of Mapping and Unmapping can happen numerous times for the same object (e.g., if an Actor goes in and out of relevancy repeatedly).

This class helps manage those references for specific replicated properties. A FGuidReferences instance will be created for each Replicated Property that is a reference to an object.

Guid References may also be nested in properties (like dynamic arrays), so we'll recursively track those as well.


该类的文档由以下文件生成: