'NavMeshSurface' does not contain a definition for 'IsPartOfPrefab'

Unity NavMeshSurface IsPartOfPrefab not found something. It says in the log

error CS1061: ‘NavMeshSurface’ does not contain a definition for ‘IsPartOfPrefab’ and no accessible extension method ‘IsPartOfPrefab’ accepting a first argument of type ‘NavMeshSurface’ could be found (are you missing a using directive or an assembly reference?)

I have absolutely no idea what to do.

Please help me.

Did you got solution for the same? Encountered same error

1 Answer

1

Are you using the AI Navigation package? If you are not using it, just remove it from the Packages folder and it will work, it usually happens when you update from one version to another

you cannot remove the package… You say remove it from the packages folder… but it’s not there either… unless theres a specific path you are refering to…