文档

Unity Engine

Unity Engine

ignoreFromBuild

Use this to specify whether the GameObject and its children should be ignored.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public bool ignoreFromBuild { get; set; }

Remarks

If you set this to
true
, the GameObject and its children will not be included as part of the NavMesh.
Set NavMeshBuildMarkup.overrideIgnore to
true
in order for this property to have the intended effect. When
overrideIgnore
is
false
this property inherits the value from the markup of a parent object, if that exists, otherwise it is set to
false
.