Topic: error CS0118: 'Terrain' is a namespace but is used like a type

Assets\Infinity Code\MeshToTerrain\Scripts\Editor\Converter\MeshToTerrain.Textures.cs(233,36): error CS0118: 'Terrain' is a namespace but is used like a type

Probably not a bug but def a conflict. Any idea what can cause this error?  I'm hoping there's a simple explanation because this tool is fantastic.

Re: error CS0118: 'Terrain' is a namespace but is used like a type

Hello.

The problem is that you have a Terrain namespace that conflicts with UnityEngine.Terrain class.
To fix the conflict, rename your namespace or move it to a inner level (such as MyApp.Terrain).

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 50 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.