You are viewing documentation for v1.1. Switch to current version โ†’

๐Ÿช AutoReplication Spawn Hook

Short Description

Interface for objects that want to react after being spawned through AutoReplication.

Long Description

Implement this interface on classes that should run custom logic when AutoReplication instantiates them on a client. The hook fires after replicated properties have been applied.

๐Ÿš€ Features

  • Blueprint-native spawn callback.
  • Called after replication snapshot is applied.

๐Ÿ“š Usage Examples

Implement On Spawned Through AutoReplication to initialize runtime state.

void UMyAutoReplicatedObject::OnSpawnedThroughAutoReplication_Implementation()
{
    // post-spawn setup
}

OnSpawnedThroughAutoReplication

Called on the client after the object has been instantiated and its properties are initialized.

No parameters.

Add logic in the interface event node.

Best Practices

  • Keep the hook lightweight; avoid heavy gameplay logic during replication.

Troubleshooting

  • If the hook does not fire, confirm the object implements the interface.