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();
}
}
用法

本文介绍了如何使用GetNameSafe函数从UObject中获取对象名称,包括NULL情况下的处理,适用于游戏开发或引擎中的对象命名管理。
1204

被折叠的 条评论
为什么被折叠?



