Optimize automatic navmesh rebuild in editor for navmesh relevant actors only

This commit is contained in:
Wojtek Figat
2021-02-19 13:02:27 +01:00
parent 9f80b9853c
commit 6d7bd78816
11 changed files with 51 additions and 11 deletions

View File

@@ -18,6 +18,9 @@ namespace FlaxEditor.SceneGraph
{
}
/// <inheritdoc />
public override bool AffectsNavigation => true;
/// <inheritdoc />
public override bool RayCastSelf(ref RayCastData ray, out float distance, out Vector3 normal)
{

View File

@@ -78,6 +78,9 @@ namespace FlaxEditor.SceneGraph.Actors
AddChildNode(new LinkNode(this, new Guid(bytes), false));
}
/// <inheritdoc />
public override bool AffectsNavigation => true;
/// <inheritdoc />
public override bool RayCastSelf(ref RayCastData ray, out float distance, out Vector3 normal)
{

View File

@@ -16,5 +16,8 @@ namespace FlaxEditor.SceneGraph.Actors
: base(actor)
{
}
/// <inheritdoc />
public override bool AffectsNavigation => true;
}
}

View File

@@ -15,5 +15,8 @@ namespace FlaxEditor.SceneGraph.Actors
: base(actor)
{
}
/// <inheritdoc />
public override bool AffectsNavigation => true;
}
}