Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

StaticBatchingUtility.Combine

Switch to Manual
public static void Combine(GameObject staticBatchRoot);

Parameters

Description

Combine will prepare all children of the staticBatchRoot for static batching.

Once combined children can NOT change their Transform properties, however staticBatchRoot can be moved.


public static void Combine(GameObject[] gos, GameObject staticBatchRoot);

Parameters

Description

Combine will prepare all gos for the static batching. staticBatchRoot will be treated as their parent.

Once combined gos can NOT change their Transform properties, however staticBatchRoot can be moved.