Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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.