暫無描述
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.

InitializeConverterContext.cs 1.0KB

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.Generic;
  2. namespace UnityEditor.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// A structure needed for the initialization step of the converter.
  6. /// Stores data to be visible in the UI.
  7. /// </summary>
  8. internal struct InitializeConverterContext
  9. {
  10. /// <summary>
  11. /// Stores the list of ConverterItemDescriptor that will be filled in during the initialization step.
  12. /// </summary>
  13. internal List<ConverterItemDescriptor> items;
  14. /// <summary>
  15. /// A bool set to true if the converter is running in batch mode.
  16. /// </summary>
  17. public bool isBatchMode { get; internal set; }
  18. /// <summary>
  19. /// Add to the list of assets to be converted.
  20. /// This will be used to display information to the user in the UI.
  21. /// </summary>
  22. /// <param name="item">The item to add to the list items to convert</param>
  23. internal void AddAssetToConvert(ConverterItemDescriptor item)
  24. {
  25. items.Add(item);
  26. }
  27. }
  28. }