Search Unity

Question Unity Oficial Toon shader With Errors

Discussion in 'Shaders' started by isotronic, May 13, 2023.

  1. isotronic

    isotronic

    Joined:
    May 12, 2020
    Posts:
    1
    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
     

    Attached Files:

  2. AdamBoyce

    AdamBoyce

    Joined:
    Jan 1, 2015
    Posts:
    2
    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.
    upload_2023-5-19_16-19-53.png
     
    terrehbyte, pedmota and kkandsong like this.