You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.core/Runtime/Volume/VolumeComponent.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public VolumeComponentMenu(string menu)
45
45
/// This attribute allows you to add commands to the <b>Add Override</b> popup menu on Volumes,
46
46
/// while also specifying the render pipeline(s) for which the command will be supported.
47
47
/// </summary>
48
-
[Obsolete(@"VolumeComponentMenuForRenderPipelineAttribute is deprecated. Use VolumeComponentMenu with SupportedOnRenderPipeline instead. #from(2023.1)")]
48
+
[Obsolete(@"VolumeComponentMenuForRenderPipelineAttribute is deprecated. Use VolumeComponentMenu with SupportedOnRenderPipeline instead. #from(2023.1)",true)]
/// The current list of all available types that derive from <see cref="VolumeComponent"/>.
145
146
/// </summary>
146
-
publicType[]baseComponentTypeArray
147
-
{
147
+
publicType[]baseComponentTypeArray
148
+
{
148
149
get
149
150
{
150
151
if(isInitialized)
@@ -153,7 +154,7 @@ public Type[] baseComponentTypeArray
153
154
thrownewInvalidOperationException($"{nameof(VolumeManager)}.{nameof(instance)}.{nameof(baseComponentTypeArray)} cannot be called before the {nameof(VolumeManager)} is initialized. (See {nameof(VolumeManager)}.{nameof(instance)}.{nameof(isInitialized)} and {nameof(RenderPipelineManager)} for creation callback).");
154
155
}
155
156
internalset=>m_BaseComponentTypeArray=value;// internal only for tests
156
-
}
157
+
}
157
158
158
159
/// <summary>
159
160
/// Global default profile that provides default values for volume components. VolumeManager applies
/// LoadBaseTypes is responsible for loading the list of VolumeComponent types that will be used to build the default state of the VolumeStack. It uses the provided global default profile to determine which component types are relevant for the current render pipeline.
424
+
/// This will be called only once at runtime on app boot
425
+
/// </summary>
426
+
/// <param name="globalDefaultVolumeProfile">The global default volume profile to use to build the base component type array.</param>
Debug.LogWarning($"{nameof(VolumeComponentMenuForRenderPipeline)} is deprecated, use {nameof(SupportedOnRenderPipelineAttribute)} and {nameof(VolumeComponentMenu)} with {t} instead. #from(2023.1)");
// This will be called only once at runtime and on domain reload / pipeline switch in the editor
429
-
// as we need to keep track of any compatible component in the project
430
-
internalvoidLoadBaseTypes(TypepipelineAssetType)
453
+
#if UNITY_EDITOR
454
+
/// <summary>
455
+
/// This should only be called when we need to load base types without being able to trust default profiles are up to date. This is slow and uses Reflection!
456
+
/// Will be called only once at runtime and on domain reload / pipeline switch in the editor as we need to keep track of any compatible component in the project
457
+
/// </summary>
458
+
/// <param name="pipelineAssetType">The Pipeline Type used to check if each VolumeComponent is supported.</param>
Debug.Log("Default Volume Profile has been created or Diffusion Profiles have been updated to ensure all components are present. This is required to avoid missing overrides at runtime which can lead to unexpected rendering issues. Please save these changes to avoid this message in the future.");
47
+
}
48
+
49
+
if(defaultVolumeProfileSettings==null)
50
+
{
51
+
thrownewBuildFailedException("Failed to initialize the Default Volume Profile. A Default Volume Profile is required for HDRP to function properly.");
Debug.Log("Default Volume Profile has been modified to ensure all components are present. This is required to avoid missing overrides at runtime which can lead to unexpected rendering issues. Please save these changes to avoid this message in the future.");
0 commit comments