GetNameSafe:返回UObject的Name(GetName()方法)
/**
* Returns the name of this object (with no path information)
* @param Object object to retrieve the name for; NULL gives "None"
* @return Name of the object.
*/
FORCEINLINE FString GetNameSafe(const UObjectBaseUtility *Object)
{
if( Object == NULL )
{
return TEXT("None");
}
else
{
return Object->GetName();
}
}
用法