surface.Bake(); no such command

(re: Unite Europe 2017 - Finding the path: New navigation features - YouTube at 13 mins 50 secs)

When I try:
surface = GetComponent ();
surface.Bake();

I am getting an error message:
UnityEngine.AI.NavMeshSurface does not contain a definition for bake and no extension method Bake of type UnityEngine.AI.NavMeshSurface could not be found "are you missing an assembly reference

I am struggling to get the dynamic navmesh working.

Well, have you loaded the components from their github page ? They seem to have refactored the component and have renamed the method to “BuildNavMesh()” which is actually a better name for dynamically updating a navmesh.

Keep in mind that this talk is already kinda old and it was the first version they presented to the public.

Specifically here’s the change they made on March 28

Have you downloaded the extra files here ?? : Runtime NavMesh Generation - Unity Learn

They are required for the new Navmesh feature functionality