UUnitTestPackageMap::SerializeNewActor

Standard method of serializing a new actor.

Windows
MacOS
Linux

Override Hierarchy

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/Net/UnitTestPackageMap.h

Include

#include "Net/UnitTestPackageMap.h"

Source

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/Net/UnitTestPackageMap.cpp

Syntax

virtual bool SerializeNewActor
(
    FArchive & Ar,
    class UActorChannel * Channel,
    class AActor *& Actor
)

Remarks

Standard method of serializing a new actor. For static actors, this will just be a single call to SerializeObject, since they can be referenced by their path name. For dynamic actors, first the actor's reference is serialized but will not resolve on clients since they haven't spawned the actor yet. The actor archetype is then serialized along with the starting location, rotation, and velocity. After reading this information, the client spawns this actor in the NetDriver's World and assigns it the NetGUID it read at the top of the function.

returns true if a new actor was spawned. false means an existing actor was found for the netguid.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss