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