Version: 2022.1
言語: 日本語

StaticBatchingUtility

class in UnityEngine

マニュアルに切り替える

説明

StaticBatchingUtility によりオブジェクトが Unity の Static バッチングを活用するようオブジェクトを準備できます。

This step is useful as a performance optimization allowing engine to reduce number of draw-calls dramatically, but keep amount of rendered geometry intact.

By calling one of the Combine methods you will create an internal mesh which will contain combined geometry, however each original GameObject will be present in the Scene and will be culled individually. The fact that GameObjects can be culled individually allows run-time to render the same amount of geometry as it would without batching, unlike combining geometry in the modeling tool. Combining geometry in the modeling tool prevents efficient culling and results in much higher amount of geometry being rendered.

Note that you do not need to call Combine methods on objects which were already marked as "Static" in the Editor. They will be prepared for static batching automatically during the Build Player step.

重要: 同じマテリアルを持つオブジェクトのみバッチングできるため、できるかぎり多くのテクスチャ/マテリアルを共有することが役に立ちます。

Static 関数

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