ConverterItemDescriptor.cs 1.5 KB

12345678910111213141516171819202122232425
  1. using System;
  2. namespace UnityEditor.Rendering.Universal.Converters
  3. {
  4. /// <summary>
  5. /// A structure holding the information for each Item that needs to be Converted.
  6. /// Name = The Name of the asset that is being converted.
  7. /// Info = Information that can be used to store some data. This will also be shown in the UI.
  8. /// WarningMessage = If there are some issues with the converter that we already know about.
  9. /// Example: If we know it is a custom shader, we can not convert it so we add the information here.
  10. /// HelpLink = Link to the documentation of how to convert this asset. Useful if the conversion failed or if we know we can not convert this asset automatically.
  11. /// </summary>
  12. [Serializable]
  13. internal struct ConverterItemDescriptor
  14. {
  15. /// <summary> Name of the asset being converted. This will be shown in the UI. </summary>
  16. public string name;
  17. /// <summary> Information that can be used to store some data. This will also be shown in the UI. </summary>
  18. public string info;
  19. /// <summary> If there are some issues with the converter that we already know about during init phase. This will be added as a tooltip on the warning icon. </summary>
  20. public string warningMessage;
  21. /// <summary> Link to the documentation of how to convert this asset. Useful if the conversion failed or if we know we can not convert this asset automatically. </summary>
  22. public string helpLink;
  23. }
  24. }