Manual     Reference     Scripting  
  
Scripting > Runtime Classes > StaticBatchingUtility   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Attributes
  • Enumerations
  • History
  • Index
  • StaticBatchingUtility
  • All Members
  • Class Functions
  • Combine

StaticBatchingUtility.Combine  

static function Combine (staticBatchRoot : GameObject) : void

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.

static function Combine (gos : GameObject[], staticBatchRoot : GameObject) : void

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.