UObjectBaseUtility::GetInterfaceAddress

Returns a pointer to this object safely converted to a pointer of the specified interface class.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectBaseUtility.h

Include

#include "UObject/UObjectBaseUtility.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectBaseUtility.cpp

Syntax

void * GetInterfaceAddress
(
    UClass * InterfaceClass
)

Remarks

Returns a pointer to this object safely converted to a pointer of the specified interface class.

Returns a pointer to this object safely converted to a pointer to the specified interface class.

Returns

a pointer that can be assigned to a variable of the interface type specified, or NULL if this object's class doesn't implement the interface indicated. Will be the same value as 'this' if the interface class isn't native.

Parameters

Parameter

Description

InterfaceClass

the interface class to use for the returned type

InterfaceClass

the interface class to use for the returned type

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss