Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions com.unity.render-pipelines.core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The version number for this package has increased due to a version update of a r
- Added class for drawing shadow cascades `UnityEditor.Rendering.ShadowCascadeGUI.DrawShadowCascades`.
- Added UNITY_PREV_MATRIX_M and UNITY_PREV_MATRIX_I_M shader macros to support instanced motion vector rendering
- Added new API to customize the rtHandleProperties of a particular RTHandle. This is a temporary work around to assist with viewport setup of Custom post process when dealing with DLSS or TAAU
- Added `IAdditionalData` interface to identify the additional datas on the core package.

### Fixed
- Help boxes with fix buttons do not crop the label.
Expand Down
10 changes: 10 additions & 0 deletions com.unity.render-pipelines.core/Runtime/Common/IAdditionalData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

namespace UnityEngine.Rendering
{
/// <summary>
/// Interface to identify additional data components
/// </summary>
public interface IAdditionalData
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct TimelineWorkaround
[AddComponentMenu("")] // Hide in menu
[RequireComponent(typeof(Light))]
[ExecuteAlways]
public partial class HDAdditionalLightData : MonoBehaviour, ISerializationCallbackReceiver
public partial class HDAdditionalLightData : MonoBehaviour, ISerializationCallbackReceiver, IAdditionalData
{
internal const float k_MinLightSize = 0.01f; // Provide a small size of 1cm for line light

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace UnityEngine.Rendering.HighDefinition
[HDRPHelpURLAttribute("Reflection-Probe")]
[AddComponentMenu("")] // Hide in menu
[RequireComponent(typeof(ReflectionProbe))]
public sealed partial class HDAdditionalReflectionData : HDProbe
public sealed partial class HDAdditionalReflectionData : HDProbe, IAdditionalData
{
void Awake()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static HDPhysicalCamera GetDefaults()
[AddComponentMenu("")] // Hide in menu
[DisallowMultipleComponent, ExecuteAlways]
[RequireComponent(typeof(Camera))]
public partial class HDAdditionalCameraData : MonoBehaviour, IFrameSettingsHistoryContainer
public partial class HDAdditionalCameraData : MonoBehaviour, IFrameSettingsHistoryContainer, IAdditionalData
{
/// <summary>
/// How the camera should handle vertically flipping the frame at the end of rendering.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static string GetName(this CameraRenderType type)
[RequireComponent(typeof(Camera))]
[ImageEffectAllowedInSceneView]
[URPHelpURL("universal-additional-camera-data")]
public class UniversalAdditionalCameraData : MonoBehaviour, ISerializationCallbackReceiver
public class UniversalAdditionalCameraData : MonoBehaviour, ISerializationCallbackReceiver, IAdditionalData
{
const string k_GizmoPath = "Packages/com.unity.render-pipelines.universal/Editor/Gizmos/";
const string k_BaseCameraGizmoPath = k_GizmoPath + "Camera_Base.png";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static UniversalAdditionalLightData GetUniversalAdditionalLightData(this
[DisallowMultipleComponent]
[RequireComponent(typeof(Light))]
[URPHelpURL("universal-additional-light-data")]
public class UniversalAdditionalLightData : MonoBehaviour
public class UniversalAdditionalLightData : MonoBehaviour, IAdditionalData
{
// Version 0 means serialized data before the version field.
[SerializeField] int m_Version = 1;
Expand Down