UObjectBaseUtility::FindNearestCommonBaseClass

Finds the most-derived class which is a parent of both TestClass and this object's 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

const UClass * FindNearestCommonBaseClass
(
    const UClass * TestClass
) const

Remarks

Finds the most-derived class which is a parent of both TestClass and this object's class.

Parameters

Parameter

Description

TestClass

the class to find the common base for

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