Version: 2021.3
言語: 日本語
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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961