Unity Oficial Toon shader With Errors

im trying to use the oficial unity toon shader with the correct supported version of the editor
https://docs.unity3d.com/Packages/com.unity.toonshader@0.8/manual/index.html
but it will give the following errors and i cant fix them, the script is imutable and it will remove every modification i do, is there any fix for it?

Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\MonoBehaviourSingleton.cs(17,36): error CS0117: ‘Object’ does not contain a definition for ‘FindObjectsByType’
Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\MonoBehaviourSingleton.cs(17,57): error CS0103: The name ‘FindObjectsSortMode’ does not exist in the current context
Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\Utilities\ObjectUtility.cs(14,9): error CS0246: The type or namespace name ‘FindObjectsInactive’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\Utilities\ObjectUtility.cs(14,69): error CS0103: The name ‘FindObjectsInactive’ does not exist in the current context
Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\Utilities\ObjectUtility.cs(14,99): error CS0103: The name ‘FindObjectsInactive’ does not exist in the current context
Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\Utilities\ObjectUtility.cs(15,35): error CS0117: ‘Object’ does not contain a definition for ‘FindObjectsByType’
Library\PackageCache\com.unity.film-internal-utilities@0.18.4-preview\Runtime\Scripts\Utilities\ObjectUtility.cs(15,77): error CS0103: The name ‘FindObjectsSortMode’ does not exist in the current context

4 Likes

You need to go into PackageManager, expand the ToonShader package, and under previous versions select 0.8.5-preview. Attempting to edit the scripts in film-internal-utilities will invalidate the PackageCache and your fixes will be overwritten with the broken code anyway, so you need to downgrade the shader package to the last version that didn’t have FilmInternalUtilities as a dependency.

3 Likes