Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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.