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.
26 results for interface
SETUP: Create a Blueprint Interface asset (BPI_Interactable) with a function 'Interact'. IMPLEMENT: In the actor BP, go to Class Settings → Interfaces → Add → BPI_Interactable. Then implement the 'Interact' event that appears in the event graph. CALL: Get actor reference → 'Does Implement Interface(BPI_Interactable)' → Branch → True → 'Interact (Message)' node (the interface call). Key: Interface calls are 'Message' type nodes. Use 'Does Implement Interface' before calling to avoid crashes on actors that don't implement it.
Why: You added an Interface to this Blueprint's class settings, but you never actually implemented '{fn}'. Other code calling this interface will get a no-op when it expects real behavior. Fix: In My Blueprint panel → Interfaces section → find '{fn}' → click the wrench icon → 'Implement Function'. UE5 adds an empty function stub for you. Fill in the body with whatever this interface method should do.
Pattern: BPI_Interactable interface with Interact(APawn* Caller) and GetInteractText(). Player Tick: GetPlayerCameraManager → GetCameraLocation/Rotation → LineTraceSingle(CamLoc, CamLoc + Forward*InteractDistance) → BreakHitResult → HitActor → DoesImplementInterface(BPI_Interactable) → True: show UI prompt, store as FocusedActor. Interact input → call Interact(Self) on FocusedActor.
Says a Blueprint provides a given Interface's functions. Other Blueprints can call those functions via the interface reference.
A contract a Blueprint can implement, exposing a set of functions other code can call without knowing the class. Used for decoupled comms.
string
A SceneComponent with simulate-physics enabled. Driven by forces, gravity, collisions instead of explicit transforms.
Set Input Mode Game And UIUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoAddToViewportUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Input trigger → LineTraceSingle(CameraLocation, CameraLocation + ForwardVector * Distance, Visibility, false, MakeArray(Self), None) → Branch(ReturnValue) → True: BreakHitResult → HitActor → CastTo InteractableInterface → call Interact. End pin is world POSITION not direction. Use DrawDebugType ForOneFrame during dev.