Search Unity

StaticBatching failure

Discussion in 'High Definition Render Pipeline' started by JCO123456, Feb 6, 2020.

  1. JCO123456

    JCO123456

    Joined:
    Jul 14, 2018
    Posts:
    98
    I create some cubes in scene, turn on the StaticBatching flag of these cubes.
    And apply my shader to cubes.
    A strange thing is Drawcalls are not batched.

    Screen Shot 2020-02-06 at 11.58.18 PM.png

    Frame Debug said there is a "DisableBatching" tag in my shader.
    But I cannot find this tag in shader.
    Only a queue tag.

    Screen Shot 2020-02-06 at 11.58.47 PM.png

    Anyone knows why?
    Thanks.