Search Unity

any way to get static batching of runtime-placed objects?

Discussion in 'General Graphics' started by JoeStrout, May 21, 2021.

  1. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    I think I know the answer to this, but I have to ask...

    We have a large number of objects (trees, rocks, etc.) that we would like to place at runtime, based on data from a file. They all share the same material and we would very much like them to be statically batched, to save on draw calls. Once placed they will not move until the player leaves the area.

    Is there any way to tell Unity, OK now these objects are static, so please batch them?
     
  2. JoNax97

    JoNax97

    Joined:
    Feb 4, 2016
    Posts:
    611
  3. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    Awesome! I had no idea that utility existed. It looks like it may be just what we need. Thank you!
     
    JoNax97 likes this.