在预计算导航数据时,尝试生成一个从该 GameObject 开始的网格外链接。
有关更多信息,请参阅有关[[wiki:nav-BuildingOffMeshLinksAutomatically|自动构建网格外链接]的文档。
void StaticEditorFlagsExample()
{
// Create a GameObject
var go = new GameObject("Example");
// Set the GameObject's StaticEditorFlags
var flags = StaticEditorFlags.OffMeshLinkGeneration;
GameObjectUtility.SetStaticEditorFlags(gameObject, flags);
}