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.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

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.