Version: 2022.3
언어: 한국어

Renderer.isPartOfStaticBatch

매뉴얼로 전환
public bool isPartOfStaticBatch ;

설명

Indicates whether the renderer is part of a static batch with other renderers.

Unity sets this flag after it generates the static batch that contains the renderer. Be aware that Unity generates static batches at different times for the Unity Player and Unity Editor:

* Unity Player: Unity generates static batches for renderers in every scene at build time. This means that Renderer.isPartOfStaticBatch is always valid in a built application. * Unity Editor: Unity builds static batches for renderers in a scene only after it loads the scene in Play mode. This means that Renderer.isPartOfStaticBatch is only valid in the Unity Editor while in Play mode after Unity loads the scene that the renderer is in.