Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
24 results for spawn actor
Why: Construction Script runs in the editor before the world is fully loaded. Spawning actors here is unsupported because the receiving world might not exist yet. Fix: Move the Spawn Actor node from Construction Script to Event BeginPlay. BeginPlay runs at runtime when the world is ready and other actors can be spawned safely.
Pattern: Trigger → SpawnActorFromClass(Class, MakeTransform(Location, Rotation, Scale), CollisionHandling, Owner) → ReturnValue → IsValid branch → use spawned actor. Always check IsValid on ReturnValue. For many spawns, spread across frames with timer to avoid hitches.
Cast ReturnValue to the specific class to access its properties.
SpawnActorFromClassUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoCreates a new Actor instance at runtime. Pass a Class Reference + Transform + Owner. Use BeginSpawnActor for deferred init.
Pattern: MakeTransform(Location=SpawnLocation, Rotation=SpawnRotation, Scale=(1,1,1)) → SpawnActorFromClass(Class=ActorClass, SpawnTransform=Transform) → CastTo<YourClass>(ReturnValue). SpawnActorFromClass inputs: 'ActorClass', 'SpawnTransform' (Transform), not separate Location/Rotation. Use MakeTransform node to build the Transform struct from Location+Rotation+Scale.
Fires once on actor spawn (after construction). Use for setup that needs other actors in the world to exist.
EventBeginPlayUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: PoolManager with Array<AActor*> AvailablePool. Init: loop SpawnActor N times → SetActorHiddenInGame(true) → SetActorEnableCollision(false) → Array_Add to pool. GetFromPool: Array_Length > 0 → remove last → SetHidden(false) → SetCollision(true) → SetActorLocation → return. ReturnToPool: SetHidden(true) → SetCollision(false) → Array_Add back.
Legacy Cascade system. Prefer Niagara (SpawnSystemAtLocation) for new projects.
SpawnEmitterAtLocationUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago