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 To
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.
Exec outputs are 'Cast Succeeded' and 'Cast Failed'. Output pin is named 'As <TargetClass>'.
CastToUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: 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 2mo agoSafely converts an Object Reference to a more specific class. Branch on the Failed output — casting to the wrong class returns null.
K2_TeleportTo.
TeleportToUE 5.4, 5.7updated 2mo agoSetActorLocationUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo 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.
UGameplayStatics::ApplyDamage. Triggers EventAnyDamage on target.
Apply DamageUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoTriggers EventAnyDamage and EventPointDamage on the target actor.
ApplyDamageUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago