MB_IAssignToMeshCustomizer.cs 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. namespace DigitalOpus.MB.Core
  4. {
  5. public interface IAssignToMeshCustomizer
  6. {
  7. /// <summary>
  8. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  9. /// this can be used to inject the slice index into a coordinate in the mesh.
  10. /// </summary>
  11. void meshAssign_UV0(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  12. /// <summary>
  13. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  14. /// this can be used to inject the slice index into a coordinate in the mesh.
  15. /// </summary>
  16. void meshAssign_UV2(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  17. /// <summary>
  18. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  19. /// this can be used to inject the slice index into a coordinate in the mesh.
  20. /// </summary>
  21. void meshAssign_UV3(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  22. /// <summary>
  23. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  24. /// this can be used to inject the slice index into a coordinate in the mesh.
  25. /// </summary>
  26. void meshAssign_UV4(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  27. /// <summary>
  28. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  29. /// this can be used to inject the slice index into a coordinate in the mesh.
  30. /// </summary>
  31. void meshAssign_UV5(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  32. /// <summary>
  33. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  34. /// this can be used to inject the slice index into a coordinate in the mesh.
  35. /// </summary>
  36. void meshAssign_UV6(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  37. /// <summary>
  38. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  39. /// this can be used to inject the slice index into a coordinate in the mesh.
  40. /// </summary>
  41. void meshAssign_UV7(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  42. /// <summary>
  43. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  44. /// this can be used to inject the slice index into a coordinate in the mesh.
  45. /// </summary>
  46. void meshAssign_UV8(int channel, MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Vector2[] uvs, float[] sliceIndexes);
  47. /// <summary>
  48. /// For customizing data just before it is assigned to a mesh. If using Texture Arrays
  49. /// this can be used to inject the slice index into a coordinate in the mesh.
  50. /// </summary>
  51. void meshAssign_colors(MB_IMeshBakerSettings settings, MB2_TextureBakeResults textureBakeResults, Mesh mesh, Color[] colors, float[] sliceIndexes);
  52. }
  53. }