Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I tried adding this to a post processing task but im getting this error, image.

I'm also trying to add a NavMeshModifier component, but where ever I try to add it (scripts/post process tasks) I get this error, image

In scripts I've created I can successfully use it if I add "using UnityEngine.AI;"

Fairly new to programming, so sorry if these questions are a bit n00bish :)

The first error is because of a missing namespace (“using System.Linq;” I think). I recommend using an IDE that can autofill namespace automatically. I’m using Visual Studio (which also has a free version available) but I think you may be able to achieve similar results vs Visual Studio Code.

The second error is probably also related to a missing namespace (or a package in your project?).

(2 edits)

I am using VSCode.  Yep, the first error was fixed with the System.Linq, thanks!

Regarding the second error, I'm able so create scripts of my own with the NavMesh components (in the same project), its only when I try to add them to any of the Edgar scripts that i get the error.

I'm using NavMeshPlus, which is considered an experimental packade by unity, don't know if that has anything to do with it..

Is it possible that you’re adding/editing files in the Edgar Examples folder and the package is somehow not included there? If you’re doing that, it’s not a good practice because when I release a new version of the generator, you may lose some of your custom changes if your files are located inside the Edgar folder. You should create your own scene outside of the Edgar folder and add scripts there.

Yes, until now i've only been experimenting with the example files.  The package is in the same project though.

As soon as i have some more time i'll try to create a scene from scratch. Thank you again.

Ok, after starting from scratch and using a custom post process I was now able to get Navmesh working at runtime, thanks again!

Good!