MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsNavMeshSupported

Method IsNavMeshSupported

Source/Engine/Navigation/Navigation.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool NavAgentMask::IsNavMeshSupported(const NavMeshProperties& navMeshProperties) const
134{
135 auto settings = NavigationSettings::Get();
136 for (int32 agentIndex = 0; agentIndex < settings->NavMeshes.Count(); agentIndex++)
137 {
138 if (settings->NavMeshes[agentIndex] == navMeshProperties)
139 {
140 return (Mask & (1 << agentIndex)) != 0;
141 }
142 }
143 return false;
144}
145
146bool NavAgentMask::operator==(const NavAgentMask& other) const
147{

Callers 2

RasterizeMethod · 0.80
BuildDirtyBoundsFunction · 0.80

Calls 2

GetFunction · 0.50
CountMethod · 0.45

Tested by

no test coverage detected