Blueprint node
Category:XRLIVE | ACTORS
A drop-in replacement for Spawn Actor from Class that automatically registers the spawned actor for cleanup when the visual closes.
| Pin | Type | Description |
|---|---|---|
Actor Class | TSubclassOf<AActor> | The class to spawn |
Spawn Transform | Transform | Location, rotation, and scale |
| Return | AActor* | The spawned actor (use DeterminesOutputType for correct cast) |
Example
Notes
- Use this instead of
Spawn Actor from Classfor any actor that should not persist after the visual closes. - The spawned actor is destroyed automatically — you do not need to call
Destroy Actoryourself. - If the actor is already destroyed before the visual closes (e.g., by gameplay logic), the cleanup system handles the stale reference safely.

