So this script is one of four used to create a mesh fade system without using layers. This is the only one I am having an issue with. I get these three errors.
Assets/Editor/MeshFade.cs(121,64): error CS1061: Type float' does not contain a definition for
CapMinMax’ and no extension method CapMinMax' of type
float’ could be found (are you missing a using directive or an assembly reference?)
Assets/Editor/MeshFade.cs(122,53): error CS1061: Type float' does not contain a definition for
CapMin’ and no extension method CapMin' of type
float’ could be found (are you missing a using directive or an assembly reference?)
Assets/Editor/MeshFade.cs(179,51): error CS1061: Type float' does not contain a definition for
CapMin’ and no extension method CapMin' of type
float’ could be found (are you missing a using directive or an assembly reference?)
I am hoping someone might be able to help me figure this out as the original author seems to be MIA. Any assistance on this would be greatly appreciated. If in Unity you create a new project with only the four scripts found on this page http://www.indiedb.c…-layers/#970208 you will at first get somewhere around 83 errors. Nearly all of those errors can be resolved by correcting any instance of && and changing it to read &&. The only three left are related to the CapMinMax and CapMin methods. I think I understand what I am looking at and why it is failing but I just have no idea how to fix it. I’m not sure what needs to be added or changed or if I am just simply missing an entire script.
2645016–186305–MeshFade.cs (6.38 KB)
2645016–186329–Extensions.cs (2.29 KB)
2645016–186330–ManagerMeshFade.cs (1.93 KB)
2645016–186331–MeshFadeCameraController.cs (2.23 KB)
2645016–186332–MeshFadeSync.cs (1.66 KB)