MB_IMeshBakerSettings.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using UnityEngine;
  2. namespace DigitalOpus.MB.Core
  3. {
  4. public interface MB_IMeshBakerSettingsHolder
  5. {
  6. MB_IMeshBakerSettings GetMeshBakerSettings();
  7. /// <summary>
  8. /// A settings holder could store settings in one of several places. We can't return a
  9. /// SerializedProperty because that would be editor only. Instead we return the parameters
  10. /// needed to construct a serialized property.
  11. /// </summary>
  12. void GetMeshBakerSettingsAsSerializedProperty(out string propertyName, out UnityEngine.Object targetObj);
  13. }
  14. public interface MB_IMeshBakerSettings
  15. {
  16. bool doBlendShapes { get; set; }
  17. bool doCol { get; set; }
  18. bool doNorm { get; set; }
  19. bool doTan { get; set; }
  20. bool doUV { get; set; }
  21. bool doUV3 { get; set; }
  22. bool doUV4 { get; set; }
  23. bool doUV5 { get; set; }
  24. bool doUV6 { get; set; }
  25. bool doUV7 { get; set; }
  26. bool doUV8 { get; set; }
  27. MB2_LightmapOptions lightmapOption { get; set; }
  28. float uv2UnwrappingParamsHardAngle { get; set; }
  29. float uv2UnwrappingParamsPackMargin { get; set; }
  30. bool optimizeAfterBake { get; set; }
  31. MB_MeshPivotLocation pivotLocationType { get; set; }
  32. Vector3 pivotLocation { get; set; }
  33. bool clearBuffersAfterBake { get; set; }
  34. MB_RenderType renderType { get; set; }
  35. IAssignToMeshCustomizer assignToMeshCustomizer { get; set; }
  36. }
  37. }