MB_PrepareObjectsForDynamicBatchingDescription.cs 777 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. public class MB_PrepareObjectsForDynamicBatchingDescription : MonoBehaviour {
  4. void OnGUI(){
  5. GUILayout.Label ("This scene creates a combined material and meshes with adjusted UVs so objects \n" +
  6. " can share a material and be batched by Unity's static/dynamic batching.\n" +
  7. " Output has been set to 'bakeMeshAssetsInPlace' on the Mesh Baker\n" +
  8. " Position, Scale and Rotation will be baked into meshes so place them appropriately.\n" +
  9. " Dynamic batching requires objects with uniform scale. You can fix non-uniform scale here\n" +
  10. " After baking you need to duplicate your source prefab assets and replace the \n" +
  11. " meshes and materials with the generated ones.\n");
  12. }
  13. }