Skip to content

Unreal C++

Interfaces

Mistakes

When checking if an uobject implements an interface make sure to check against the

UInterface not the IinterfaceName

UINTERFACE(Blueprintable)
class UCursorSamplerInterface : public UInterface
{
GENERATED_BODY()
};
class CURSORSAMPLER_API ICursorSamplerInterface
{
GENERATED_BODY()
}

From other class

const bool bImplements = Sampler->Implements<ICursorSamplerInterface>();