Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RunItemContext.cs 1.2KB

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