Entity Component
UCrowdyEntityComponent is the one component the SDK tracks an actor by. It registers the actor in the entity registry, hands out its identity, optionally feeds the continuous state channel, and raises the lifecycle events. This page is the reference; the concepts are on Entities, Identity, and Ownership.
Getting the component
In C++ the actor usually holds the pointer it created in its constructor. From anywhere else, UCrowdyUtilities::GetCrowdyEntityComponent(Actor) (Blueprint: Get Crowdy Entity Component, Actor defaults to self) resolves it GAS-style: if the actor implements ICrowdyEntityComponentProvider its answer is used, otherwise FindComponentByClass. Implement the interface when the component lives on a child actor or is chosen at runtime; it is deliberately not a node you call directly.

Settings
All EditAnywhere, so a constructor, a Blueprint's Class Defaults, or a placed instance can set them.
| Setting | Default | One line |
|---|---|---|
ReplicateMovement (ECrowdyReplicateMovement) | Auto | Auto is on for a pawn with a movement component (a Character, for one) and off for anything else. On streams the StateExecutor snapshot every replication interval, so a plain actor that should move must set it. Off sends no movement. Unrelated to ownership, events and Crowdy State, which work either way. Auto resolves by class and placement only. |
IdentityPolicy (ECrowdyIdentityPolicy) | Stable | Stable, PlayerDerived (random, kept by the game session for one sign-in), or Random. Read only when the actor resolves its own identity; a runtime spawn ignores it. |
OwnedBy (ECrowdyOwnedBy) | Auto | Who writes the entity. Player: this client owns it (Role = Owner). World: no client writes it (Role = WorldOwned); it applies to an actor placed in the level, and one spawned during play belongs to its spawner. Leader: whichever client leads, placed or spawned. Auto: World when placed, Player when spawned, by class and placement only. Read back in Blueprint as Get Owned By. |
StateHeartbeat (ECrowdyStateHeartbeat) | Inherit | Inherit follows the map profile's keyframe; Off never emits a keyframe for this entity. On-change replication is unaffected. |
bAutoApproveOwnershipRequests | off | The current authority grants any transfer request at once instead of raising OnOwnershipRequested. |
StateExecutor (UActorUpdateExecutor) | none | Only when movement is replicated. Builds the snapshot; unset means the SDK's transform-only default. |
bAutoRegister | on | Only when movement is replicated. Join the continuous channel at BeginPlay; off means you call StartReplication yourself. |
DestroyDelay (float) | 0 | Seconds between OnCrowdyDestroyed and the actor being destroyed. |
Callables
Category Crowdy SDK, Entity Component in the Blueprint palette.
| Function | One line |
|---|---|
GetNetID() | The entity's shared id, as an FGuid. |
GetWriterID() | The actor id of the session that writes the entity (Blueprint node Get Writer ID, formerly Get Owner ID); invalid for a World (WorldOwned) entity. |
GetOwnerUserID() | The user id of the player who owns the entity, 0 when unknown: the signed-in user for an entity this session writes, the user its writer claimed for another client's, and 0 for another player's avatar (Resolve Actor Owner answers it). A label for display, never a write check. |
IsOwnedByLocalUser() | True when the signed-in user owns the entity, from this session or another of theirs. In a second session of the same account it is true while IsLocallyOwned() is false. |
GetRole() | ECrowdyRole: Owner, RemoteProxy, WorldOwned, or None before registration. |
IsLocallyOwned() | True when this client writes the entity, which means it owns it. False on every client for a World entity. The question to ask before owner work. Is Crowdy Entity Locally Owned asks the same of any actor or replicated subsystem without fetching the component. |
ReplicatesMovement() | Blueprint node Replicates Movement. True when this entity sends its movement, with Auto resolved. ReplicatesMovementFor(ActorClass) asks the same of a class's component template, which has no owner. |
GetStateHeartbeat() | The setting above, read back. There is no getter for IdentityPolicy. |
StartReplication(), StopReplication() | Join or leave the continuous channel. Meaningful for an entity that replicates movement and this client owns; bAutoRegister calls the first one for you. |
MarkStateDirty(PropertyName), MarkAllStateDirty() | Schedule one, or every, CrowdyManualDirty property to ship on the next replication tick. See Crowdy State: marking state from outside the actor. |
DestroyEntity() | Broadcast the destroy event and destroy the owner after DestroyDelay. The same path as the subsystem's DestroyEntity(Actor) and UCrowdyUtilities::DestroyCrowdyEntity. |
IsLocallyOwned() here takes no argument and answers for the client that writes the entity; UCrowdyEntitySubsystem::IsLocallyOwned(NetID) answers a narrower question about the record's writer id. Do not treat them as interchangeable.
Events
| Event | Signature | When |
|---|---|---|
OnCrowdySpawned (FOnCrowdyEntitySpawned) | InitialState, bIsLocallyOwned | Runtime-spawned entities only: fired by SpawnEntity on the spawner and by the spawn event on every proxy, with the spawn payload. A level-placed entity never receives it; bind OnCrowdyOwnershipAssigned there instead. |
OnCrowdyDestroyed (FOnCrowdyEntityDestroyed) | bIsLocallyOwned | On every client when the entity is torn down, before the delay. |
OnCrowdyOwnershipAssigned (FOnCrowdyOwnershipAssigned) | NewOwnerID, NewRole, bIsLocallyOwned | Once the entity knows its owner, on the tick after registration (so a bind in BeginPlay still gets it), and again on every reassignment. NewOwnerID is the writer id, invalid for a World entity. |
The example binds all three in ALantern::BeginPlay, after Super::BeginPlay(); the three AddDynamic lines in the block go there. A lantern the player drops at runtime is the kind of entity that receives all three: the spawn path announces OnCrowdySpawned right after BeginPlay, on the owner and on every proxy, so a bind made there is in place in time. A level-placed post never gets the spawn event; on it only the destroy and ownership handlers ever run. The light shows on spawn, hides on destroy, and brightens or dims as the answer to "do I own this" arrives.
- C++
- Blueprint
// Lantern.h
UFUNCTION()
void HandleSpawned(const FInstancedStruct& InitialState, bool bIsLocallyOwned);
UFUNCTION()
void HandleDestroyed(bool bIsLocallyOwned);
UFUNCTION()
void HandleOwnershipAssigned(const FGuid& NewOwnerID, ECrowdyRole NewRole, bool bIsLocallyOwned);
// Lantern.cpp
CrowdyEntity->OnCrowdySpawned.AddDynamic(this, &ALantern::HandleSpawned);
CrowdyEntity->OnCrowdyDestroyed.AddDynamic(this, &ALantern::HandleDestroyed);
CrowdyEntity->OnCrowdyOwnershipAssigned.AddDynamic(this, &ALantern::HandleOwnershipAssigned);
void ALantern::HandleSpawned(const FInstancedStruct& InitialState, bool bIsLocallyOwned)
{
// Spawned entities only: the spawn path announces it right after BeginPlay, on the owner and on every proxy.
Light->SetVisibility(true);
}
void ALantern::HandleDestroyed(bool bIsLocallyOwned)
{
Light->SetVisibility(false);
}
void ALantern::HandleOwnershipAssigned(const FGuid& NewOwnerID, ECrowdyRole NewRole, bool bIsLocallyOwned)
{
Light->SetIntensity(bIsLocallyOwned ? 8000.f : 2000.f);
}
In the spawned lantern's Blueprint, at Event BeginPlay, Get Crowdy Entity Component feeds Bind Event to On Crowdy Spawned, whose Event pin is wired to a custom event, OnLanternSpawned, that receives the spawn payload and the ownership flag; its body calls Set Visibility on Light. The other two events bind the same way from the same getter.
Asking a different question than IsLocallyOwned
The Quickstart and the identity page both branch on IsLocallyOwned(). The accessor family answers finer questions: GetRole() distinguishes the owner from a World entity (WorldOwned, which no client writes by default) from a proxy, which the boolean cannot. The example grades the post's light by role.
Four more UCrowdyUtilities nodes ask role questions without fetching the component: CrowdyIsRemoteProxy(Entity) (Crowdy Is Remote Proxy) is true when the entity's role is RemoteProxy, and IsCrowdyEntityPlayerControlled(TargetActor) (Is Crowdy Entity Player Controlled) is true for an actor with an entity component that replicates movement or a registered remote-proxy record; SwitchCrowdyIsRemoteProxy and SwitchIsCrowdyEntityPlayerControlled are the same two answers as exec pins.
- C++
- Blueprint
// LanternPost.h
void ShowRole();
// LanternPost.cpp
void ALanternPost::ShowRole()
{
// A post a player spawned is Owner there and RemoteProxy elsewhere; a level-placed post is WorldOwned everywhere.
switch (CrowdyEntity->GetRole())
{
case ECrowdyRole::Owner: Light->SetIntensity(8000.f); break;
case ECrowdyRole::WorldOwned: Light->SetIntensity(4000.f); break;
default: Light->SetIntensity(1000.f); break;
}
}
The generated graphs branch on booleans, so the three-way role grading of the C++ half is shown as its two-way half: Get Crowdy Entity Component, Is Locally Owned, a Branch, and Set Intensity to 8000 on Light for the owner. For the full grading in Blueprint, replace the Branch with a Switch on ECrowdyRole fed by Get Role.
The two RPC receivers on the component
RequestOwnership_Implementation(RequesterID, RequesterUserID) and GrantOwnership_Implementation(NewWriterID, PreviousWriterID, NewOwnerUserID) are CrowdyEvent functions with CrowdyRecipient = "Multicast" that carry ownership transfer over the session channel. Call the static UCrowdyOwnershipTransfer nodes instead of these; GrantOwnershipTo(NewWriterID, NewOwnerUserID) is the C++ entry the static nodes funnel through.
They ride the app's session channel, which the SDK always joins, so a request or a grant reaches every client. Re-declared on a channel of their own they would reach that channel's members instead of the entity's audience. Ownership on this plane is a convention in any case; the enforced kind lives in your server code, on the truth plane.
Advanced: the static identity helpers
C++ only, pure, and the same functions the SDK's own identity resolution calls. Useful when writing custom identity code; not needed otherwise.
| Static | What it answers |
|---|---|
ResolveOwnedBy(OwnedBy, bIsLevelPlaced) | The owner identity resolution applies: Player, World or Leader, never Auto. Auto is World for an actor placed in the level and Player for one spawned during play. A runtime spawn is always its spawner's. |
ResolveReplicatesMovement(ReplicateMovement, bIsPawnWithMovement) | Whether movement is sent, never Auto. Auto is On for a pawn with a movement component and Off for anything else. |
DeriveAuthority(Ownership, LocalPlayerID, OutRole, OutWriterID), ResolveEffectiveOwnership(AuthoredOwnership, bIsLevelPlaced) | The role, writer id and applied ownership for an ECrowdyOwnership, the enum RegisterParticipant takes. |
DeriveOwner(ResolvedOwnedBy, LocalPlayerID, OutRole, OutWriterID) | The role and writer id a resolved owner produces. |
ResolveActorInstanceGuid(Actor) | The engine's per-placement guid, the Stable identity seed. |
ShouldUsePlacementGuid(bIsLevelPlaced, bHasInstanceGuid), SelectPlacementGuid(AtRegister, Live) | When that guid may be used, and why the snapshot taken at OnRegister wins over a live read in a cooked build. |
ComputeStableNetID(bOutUsedPathFallback) | The Stable NetID for this actor, and whether it fell back to hashing the path. |
DoesOwnershipMatch(OwnerRole, OwnerNetID, TargetRole, TargetWriterID) | The ownership test behind UCrowdyUtilities::DoesCrowdyEntityOwn: the target's writer id is the owner's NetID, a session question, so another session of the same user does not match. A World entity on either side never matches. |
ClassifyPlayerDerivedIdentity(Facts), DescribePlayerDerivedIdentity(Verdict) | Which condition made PlayerDerived fall back to Random, and the sentence the warning uses. |
ShouldReportHostOwnedAutoRegister(bInReplicatesMovement, bInAutoRegister, Role) | The authoring diagnostic for a World (WorldOwned) entity that replicates movement and so ends BeginPlay sending nothing. |
GetClassID() | The class hash carried on spawn events. |
InitIdentity, AssignPooledIdentity, ClearIdentity, MarkPooledDormant, and IsPooledDormant are the injection points the entity subsystem and the actor pool use; game code has no reason to call them.
Gotchas
OnCrowdyOwnershipAssignedis announced on the tick after registration, deliberately, so a bind in the actor's ownBeginPlayis not too late.- A placed entity that replicates movement, Owned By World (or Auto), with
bAutoRegisteron leavesBeginPlaysending nothing: auto-register only starts the channel for an entity this client owns outright. The log says so once per component. DestroyEntity()exists in three places with three signatures and one behaviour. Use whichever you already hold a reference for.- The enum getters return the setting, not a live derivation.
GetRole()is the live answer.
Related
- Entities, Identity, and Ownership: what the settings mean.
- Entities and spawning: the subsystem's spawn, destroy, and lookup calls.
- Ownership transfer: the static nodes that replace calling the two receivers.
- Crowdy State: the properties
MarkStateDirtyserves. - Continuous state:
ReplicateMovement,StateExecutor, andbAutoRegister.