Esempio n. 1
0
        static NavMeshData InitializeBakeData(NavMeshSurface2d surface)
        {
            var emptySources = new List <NavMeshBuildSource>();
            var emptyBounds  = new Bounds();

            return(UnityEngine.AI.NavMeshBuilder.BuildNavMeshData(surface.GetBuildSettings(), emptySources, emptyBounds
                                                                  , surface.transform.position, surface.transform.rotation));
        }
Esempio n. 2
0
    NavMeshData InitializeBakeData()
    {
        var emptySources = new List <NavMeshBuildSource>();
        var emptyBounds  = new Bounds();

        return(NavMeshBuilder.BuildNavMeshData(navMeshSurface.GetBuildSettings(), emptySources, emptyBounds,
                                               navMeshSurface.transform.position, navMeshSurface.transform.rotation));
    }