暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RunItemContext.cs 1003B

1234567891011121314151617181920212223242526272829303132
  1. #if UNITY_2022_2_OR_NEWER
  2. namespace Unity.AI.Navigation.Editor.Converter
  3. {
  4. /// <summary>
  5. /// A structure needed for the conversion part of the converter.
  6. /// This holds the item that is being converted.
  7. /// </summary>
  8. internal struct RunItemContext
  9. {
  10. ConverterItemInfo m_Item;
  11. /// <summary> The item that will go through the conversion code. </summary>
  12. public ConverterItemInfo item => m_Item;
  13. /// <summary> A bool to set if this item failed to convert. </summary>
  14. public bool didFail { get; set; }
  15. /// <summary> Info to store data to be shown in the UI. </summary>
  16. public string info { get; set; }
  17. internal bool hasConverted { get; set; }
  18. /// <summary> Constructor for the RunItemContext. </summary>
  19. public RunItemContext(ConverterItemInfo item)
  20. {
  21. m_Item = item;
  22. didFail = false;
  23. info = "";
  24. hasConverted = false;
  25. }
  26. }
  27. }
  28. #endif