Topic: Cannot convert from 'Shader' to 'UnityEngine.Shader' error on import

Hi, I'm using URP and unity 2020.3.12f1 and as soon as I import Mesh To Terrain I receive three errors:

Assets\Infinity Code\MeshToTerrain\Scripts\Editor\Converter\MeshToTerrain.Textures.cs(178,41): error CS1503: Argument 1: cannot convert from 'Shader' to 'UnityEngine.Shader'

Assets\Infinity Code\MeshToTerrain\Scripts\Editor\Converter\MeshToTerrain.Textures.cs(176,34): error CS0117: 'Shader' does not contain a definition for 'Find'

Assets\Infinity Code\MeshToTerrain\Scripts\Editor\Converter\MeshToTerrain.Textures.cs(175,101): error CS0117: 'Shader' does not contain a definition for 'Find'

The Infinity option also did not appear in the Window menu. I've been struggling to figure out what's going on here so any help would be greatly appreciated. Thanks!

Re: Cannot convert from 'Shader' to 'UnityEngine.Shader' error on import

Hello.

This is because you have a Shader class in the global namespace.
To solve the problem, rename the class or add some namespace to it.

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.

Re: Cannot convert from 'Shader' to 'UnityEngine.Shader' error on import

Alex Vertax wrote:

Hello.

This is because you have a Shader class in the global namespace.
To solve the problem, rename the class or add some namespace to it.

I did indeed tongue Thanks for the help.