RealDocs

AActor::NetTag

property Engine Since unknown
#include "GameFramework/Actor.h"
Access: public Specifiers: UPROPERTYTransient

Description

Internal bookkeeping integer used by UNetDriver to track actor channel state. Do not read or write this from gameplay code.

Caveats & Gotchas

  • This property is an engine-internal implementation detail of the net driver's actor relevancy and channel tracking system. Modifying it directly can cause silent channel desynchronisation and replication failures that are extremely difficult to diagnose.
  • Marked Transient so it is never serialised to disk — its value is only meaningful within a single net driver session and is reset when the connection is torn down.
  • It is exposed as public solely to allow the engine's net driver code to access it efficiently; this does not imply it is intended for external use. Treat it as if it were private.

Signature

UPROPERTY(Transient)
int32 NetTag

Example

Never do this C++
// DO NOT modify NetTag directly — this is for illustration only
// Actor->NetTag = 0; // Resets internal net driver tracking, causes replication bugs
// Instead, let the net driver manage this automatically.

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.