MB_ExampleSkinnedMeshDescription.cs 977 B

1234567891011121314151617
  1. using UnityEngine;
  2. using System.Collections;
  3. public class MB_ExampleSkinnedMeshDescription : MonoBehaviour {
  4. void OnGUI(){
  5. GUILayout.Label ("Mesh Renderer objects have been baked into a skinned mesh. Each source object\n" +
  6. " is still in the scene (with renderer disabled) and becomes a bone. Any scripts, animations,\n" +
  7. " or physics that affect the invisible source objects will be visible in the\n" +
  8. "Skinned Mesh." +
  9. " This approach is more efficient than either dynamic batching or updating every frame \n" +
  10. " for many small objects that constantly and independently move. \n" +
  11. " With this approach pay attention to the SkinnedMeshRenderer Bounds and Animation Culling\n" +
  12. "settings. You may need to write your own script to manage/update these or your object may vanish or stop animating.\n" +
  13. " You can update the combined mesh at runtime as objects are added and deleted from the scene.");
  14. }
  15. }