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

IncludeRenderPipelineAsset.cs 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. namespace UnityEngine.Rendering
  3. {
  4. /// <summary>
  5. /// Define the RPAsset inclusion at build time, for your pipeline.
  6. /// Default: only RPAsset in QualitySettings are embedded on build
  7. /// </summary>
  8. [Serializable]
  9. [SupportedOnRenderPipeline]
  10. [Categorization.CategoryInfo(Name = "H: RP Assets Inclusion", Order = 990), HideInInspector]
  11. public class IncludeAdditionalRPAssets : IRenderPipelineGraphicsSettings
  12. {
  13. enum Version
  14. {
  15. Initial,
  16. Count,
  17. Last = Count - 1
  18. }
  19. [SerializeField, HideInInspector]
  20. private Version m_version = Version.Last;
  21. int IRenderPipelineGraphicsSettings.version => (int)m_version;
  22. [SerializeField]
  23. private bool m_IncludeReferencedInScenes;
  24. /// <summary> Additionaly include RPAsset referenced in Scene. </summary>
  25. public bool includeReferencedInScenes
  26. {
  27. get => m_IncludeReferencedInScenes;
  28. set => this.SetValueAndNotify(ref m_IncludeReferencedInScenes, value, nameof(m_IncludeReferencedInScenes));
  29. }
  30. [SerializeField]
  31. private bool m_IncludeAssetsByLabel;
  32. /// <summary> Additionaly include RPAsset that have a specific label. </summary>
  33. public bool includeAssetsByLabel
  34. {
  35. get => m_IncludeAssetsByLabel;
  36. set => this.SetValueAndNotify(ref m_IncludeAssetsByLabel, value, nameof(m_IncludeAssetsByLabel));
  37. }
  38. [SerializeField]
  39. private string m_LabelToInclude;
  40. /// <summary> Label to use when including RPAsset by label. </summary>
  41. public string labelToInclude
  42. {
  43. get => m_LabelToInclude;
  44. set => this.SetValueAndNotify(ref m_LabelToInclude, value, nameof(m_LabelToInclude));
  45. }
  46. }
  47. }