Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CombineInstance

Struct used to describe meshes to be combined using Mesh.CombineMeshes.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public struct CombineInstance

Properties

Property

Description

lightmapScaleOffsetThe baked lightmap UV scale and offset applied to the Mesh.
meshMesh to combine.
realtimeLightmapScaleOffsetThe real-time lightmap UV scale and offset applied to the Mesh.
subMeshIndexSub-Mesh index of the Mesh.
transformMatrix to transform the Mesh with before combining. Refer to Mesh.CombineMeshes for an example.