IBoneReplace.cs 704 B

123456789101112131415161718192021222324252627
  1. // Magica Cloth.
  2. // Copyright (c) MagicaSoft, 2020-2022.
  3. // https://magicasoft.jp
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. namespace MagicaCloth
  7. {
  8. /// <summary>
  9. /// ボーン置換インターフェース
  10. /// </summary>
  11. public interface IBoneReplace
  12. {
  13. /// <summary>
  14. /// 現在使用しているボーンを格納して返す
  15. /// </summary>
  16. /// <returns></returns>
  17. HashSet<Transform> GetUsedBones();
  18. /// <summary>
  19. /// ボーンを置換する
  20. /// </summary>
  21. /// <param name="boneReplaceDict"></param>
  22. void ReplaceBone<T>(Dictionary<T, Transform> boneReplaceDict) where T : class;
  23. }
  24. }