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

Method OnEnable

Source/Engine/Navigation/NavMesh.cpp:165–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void NavMesh::OnEnable()
166{
167 // Base
168 Actor::OnEnable();
169
170 if (!_navMeshActive)
171 {
172 GetScene()->Navigation.Meshes.Add(this);
173 AddTiles();
174 _navMeshActive = true;
175 }
176}
177
178void NavMesh::OnDisable()
179{

Callers

nothing calls this directly

Calls 3

OnEnableFunction · 0.85
GetSceneFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected