MeshRendererAndOriginalMaterials.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. namespace LunarCatsStudio.SuperCombiner
  4. {
  5. /// <summary>
  6. /// Data class used to store information about a mesh rendere (or skinned mesh renderer)
  7. /// and all it's original materials, and eventually the list of splitted game objects
  8. /// </summary>
  9. class MeshRendererAndOriginalMaterials
  10. {
  11. /// <summary>
  12. /// The list of MeshRenderer
  13. /// </summary>
  14. public List<MeshRenderer> _meshRenderers = new List<MeshRenderer>();
  15. /// <summary>
  16. /// List of skinnedMeshRenderer
  17. /// </summary>
  18. public List<SkinnedMeshRenderer> _skinnedMeshRenderers = new List<SkinnedMeshRenderer>();
  19. /// <summary>
  20. /// The list of original materials for each _meshRenderers
  21. /// </summary>
  22. public List<Material[]> _originalMaterials = new List<Material[]>();
  23. /// <summary>
  24. /// The list of original materials for each _skinnedMeshRenderers
  25. /// </summary>
  26. public List<Material[]> _originalskinnedMeshMaterials = new List<Material[]>();
  27. /// <summary>
  28. /// List of splitted GameObject created
  29. /// </summary>
  30. public List<GameObject> _splittedGameObject = new List<GameObject>();
  31. }
  32. }