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.
38 results for cast
Why: Your Cast To node references the class '{class}' which has been removed or renamed since you added the cast. Fix: Click the Cast To node. In Details panel, click the dropdown next to 'Cast To Class' and re-select the actual current class. If the class is truly gone, replace this Cast with an Interface call or a different type test.
Pattern: GetPlayerCharacter(PlayerIndex=0) → CastTo<BP_MyCharacter>(Object=ReturnValue) → Cast Succeeded → Get/Set variables on 'As BP_MyCharacter' output pin. Key: CastTo exec input='execute', exec output='Cast Succeeded'/'Cast Failed'. The cast output pin is named 'As BP_MyCharacter' (or whatever your class is). Connect this output to any node that needs the typed reference.
K2Node_DynamicCast. Cast Failed pin name is CastFailed. As output pin is dynamically named.
CastToUE 5.4, 5.7updated 3mo agoCast ReturnValue to the specific class to access its properties.
SpawnActorFromClassUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoSetActorScale3DUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoInternal name K2_SetActorRotation.
SetActorRotationUE 5.4, 5.7updated 3mo agoPattern: 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.
NOT K2_ prefixed (unlike SetActorLocation/Rotation).
SetActorScale3DUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoPure node. Returns null if none found. Cheaper than GetAllActorsOfClass for single-actor searches.
GetActorOfClassUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoRequires Simulation Generates Hit Events on physics body.
Event HitUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo ago