UKismetSystemLibrary::Conv_InterfaceToObject
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Converts an interface reference back into the underlying UObject that implements it. In Blueprint this shows as a compact "->" autocast node.
Caveats & Gotchas
- • Marked BlueprintAutocast, so Blueprint graphs rarely call this explicitly — connecting an interface pin directly to an object pin inserts this conversion automatically.
- • Returns nullptr if the interface reference itself is unset; use IsValidInterface first if the interface may not have been assigned.
Signature
static UObject* Conv_InterfaceToObject(const FScriptInterface& Interface) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Interface | const FScriptInterface& | The interface reference to unwrap. | — |
Return Type
UObject* Example
Unwrap an interface reference to its object C++
FScriptInterface InterfaceRef = GetSomeInteractableInterface();
UObject* Underlying = UKismetSystemLibrary::Conv_InterfaceToObject(InterfaceRef); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?