Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Miss PhysicsDynamicDebugMaterial.mat and PhysicsStaticDebugMaterial.mat

Discussion in 'Physics for ECS' started by ZaneLou2020, Oct 16, 2022.

  1. ZaneLou2020

    ZaneLou2020

    Joined:
    Oct 2, 2020
    Posts:
    11
    hi:
    in 1.0.0-exp.8 version, DrawMeshUtility class use this two materials, but they are missing, so enable PhysicsDebugDisplay, we can get DrawMeshInstanced does not support the shader 'Hidden/InternalErrorShader' because it does not read any instanced properties. Try switching to DrawMeshInstancedProcedural if the shader is doing procedural instancing error.
     
  2. hxhloveunity

    hxhloveunity

    Joined:
    May 27, 2022
    Posts:
    32
    because the debug mat is PhysicsStaticDebugMaterial.mat, and it use shader is PhysicsStatic.shader。but PhysicsStatic.shader is in PhysicsSamples project。