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.

Bug "Entities Graphics Package Causing Shader Error in Unity 3D Build"

Discussion in 'Graphics for ECS' started by Pilltech101, May 3, 2023.

  1. Pilltech101

    Pilltech101

    Joined:
    Jul 25, 2014
    Posts:
    35
    Hello everyone,
    I am currently experiencing an issue with the Entities Graphics Package in Unity 3D. Every time I try to build with this package, I encounter the following shader error:

    Shader error in 'Hidden/OcclusionDebugOccluders': 'UnitySetupInstanceID': no matching 1 parameter function at line 62 (on d3d11)

    The error disappears when I remove the Entities Graphics Package and do a build. I understand that this is an internal shader error that cannot be changed. However, I am wondering if there is a step or something that I am missing that could help me resolve this issue.
    Here is the full error code for reference:

    Compiling Subshader: 0, Pass: ForwardOnly, Vertex program with STEREO_INSTANCING_ON
    Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP
    UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
    Disabled keywords: SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING

    If anyone has any suggestions or insights on how to resolve this issue, I would greatly appreciate it. Thank you in advance for your help.
    Best regards,

    Screenshot 2023-05-03 153915.png
     
    Last edited: May 3, 2023
    ArtemX1 likes this.