Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Static batching for disabled objects

Discussion in 'General Graphics' started by GeistDeSaintTraft, Nov 24, 2023.

  1. GeistDeSaintTraft

    GeistDeSaintTraft

    Joined:
    Dec 18, 2020
    Posts:
    1
    Hello.
    I discovered static batching recently, and I have a question about it.

    I have a quite big scene with objects being displayed only when necessary, with triggers on the map that SetActive(true/false) objects.

    When I use static batching on same objects, it only works if objects are active in the editor. Not during play time.

    Do I need to set theses objects active first, and then disable them on Start/Awake to make it work, or am I doing something wrong?