diff --git a/Packages/com.unity.render-pipelines.core/Editor/HeaderFoldout.cs b/Packages/com.unity.render-pipelines.core/Editor/HeaderFoldout.cs index 0fa3fba9217..d140d8d685a 100644 --- a/Packages/com.unity.render-pipelines.core/Editor/HeaderFoldout.cs +++ b/Packages/com.unity.render-pipelines.core/Editor/HeaderFoldout.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization.Configuration; using UnityEngine; using UnityEngine.UIElements; diff --git a/Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.EnvironmentLibrarySidePanel.cs b/Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.EnvironmentLibrarySidePanel.cs index dfe60e1f5be..184d22c04ae 100644 --- a/Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.EnvironmentLibrarySidePanel.cs +++ b/Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.EnvironmentLibrarySidePanel.cs @@ -428,7 +428,7 @@ void IEnvironmentDisplayer.Repaint() void OnFocus() { //OnFocus is called before OnEnable that open backend if not already opened, so only sync if backend is open - if (LookDev.open) + if (LookDev.open && LookDev.currentContext != null) { //If EnvironmentLibrary asset as been edited by the user (deletion), //update all view to use null environment if it was not temporary ones diff --git a/Packages/com.unity.render-pipelines.core/Editor/RenderGraph/RenderGraphViewer.cs b/Packages/com.unity.render-pipelines.core/Editor/RenderGraph/RenderGraphViewer.cs index 66398fca199..6c9e4b96c2a 100644 --- a/Packages/com.unity.render-pipelines.core/Editor/RenderGraph/RenderGraphViewer.cs +++ b/Packages/com.unity.render-pipelines.core/Editor/RenderGraph/RenderGraphViewer.cs @@ -1131,7 +1131,7 @@ void SetSelectedExecutionIndex(int executionIndex) if (m_SelectedExecutionIndex != executionIndex) { m_SelectedExecutionIndex = executionIndex; - UpdateCurrentDebugData(); + UpdateCurrentDebugData(true); } // Using a custom toolbar menu instead of default Dropdown in order to get access to allowDuplicateNames, @@ -2032,7 +2032,7 @@ void UpdateStatusLabel() string connectionStatus = m_IsDeviceConnected ? "Online" : "Offline"; - bool isEditor = m_ConnectedDeviceName == "Editor"; + bool isEditor = m_ConnectedDeviceName == k_EditorName; string sourceLabel = isEditor ? "Source: Editor" : $"Source: {m_ConnectedDeviceName} ({connectionStatus})"; bool hasCapture = HasValidDebugData && m_LastDataCaptureTime != DateTime.MinValue; @@ -2052,7 +2052,8 @@ void UpdateCurrentDebugData(bool force = false) { m_CurrentDebugData = RenderGraphDebugSession.GetDebugData(m_SelectedRenderGraph, selectedExecutionItem.id); - if (HasValidDebugData) + // Update timestamp when we get valid data, or when forcing an update + if (HasValidDebugData || force) m_LastDataCaptureTime = DateTime.Now; } else @@ -2066,6 +2067,8 @@ void UpdateCurrentDebugData(bool force = false) currentGraphDropdown.style.display = DisplayStyle.None; if (currentExecutionToolbarMenu != null) currentExecutionToolbarMenu.style.display = DisplayStyle.None; + + m_LastDataCaptureTime = DateTime.MinValue; } UpdateStatusLabel(); @@ -2170,6 +2173,7 @@ void OnPlayerConnected(int playerID) void OnPlayerDisconnected(int playerID) { m_IsDeviceConnected = false; + m_ConnectedDeviceName = k_EditorName; if (!m_Paused) { diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/AssemblyInfo.cs b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/AssemblyInfo.cs index 7b5baea47ee..a23b1929136 100644 --- a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/AssemblyInfo.cs +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/AssemblyInfo.cs @@ -1,8 +1,10 @@ using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Editor")] +[assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Editor.Tests")] [assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Runtime")] [assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.Editor")] +[assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.Editor.Tests")] [assembly: InternalsVisibleTo("Unity.RenderPipelines.Universal.Runtime")] diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge.meta b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge.meta new file mode 100644 index 00000000000..6253c4c9af2 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 02f7c2afd27849d5bd54a9ebd3c907cd +timeCreated: 1763573664 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs new file mode 100644 index 00000000000..49b484bbef8 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Unity.RenderPipelines.Core.Runtime.Shared")] diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs.meta b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs.meta new file mode 100644 index 00000000000..fe01ee3f3a5 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/AssemblyInfo.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: d29df7f331f7428291bc7e8dae943921 +timeCreated: 1763573679 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs new file mode 100644 index 00000000000..4bf56f60496 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs @@ -0,0 +1,23 @@ +using UnityEngine.Rendering; + +// /!\ Some API shared through this bridge are in Editor assembly. +// Be sure to not forget #if UNITY_EDITOR for them + +namespace Unity.RenderPipelines.Core.Runtime.Shared.Bridge +{ +#if UNITY_EDITOR + internal static class RenderPipelineEditorUtilityBridge + { + internal static bool TryMigrateRenderingLayersToTagManager(string[] renderingLayerNames) + where T : RenderPipeline + { + return UnityEditor.Rendering.RenderPipelineEditorUtility.TryMigrateRenderingLayersToTagManager(renderingLayerNames); + } + + internal static void ClearMigratedRenderPipelines() + { + UnityEditor.Rendering.RenderPipelineEditorUtility.ClearMigratedRenderPipelines(); + } + } +#endif +} diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs.meta b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs.meta new file mode 100644 index 00000000000..527e674475e --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/RenderPipelineEditorUtilityBridge.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 486ef00c6e004bffaf47c05cf4134fec +timeCreated: 1763573140 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared.asmdef b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared.asmdef new file mode 100644 index 00000000000..89aec51f915 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared.asmdef @@ -0,0 +1,14 @@ +{ + "name": "Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared", + "rootNamespace": "", + "references": [], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared.asmdef.meta b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared.asmdef.meta new file mode 100644 index 00000000000..ba5975ec7e2 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalBridge/Unity.InternalAPIEngineBridge.RenderPipelines.Core.Runtime.Shared.asmdef.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 65f885ff41204234be23cc2446e7bb85 +timeCreated: 1763573709 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalRenderPipelineGlobalSettingsUtils.cs b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalRenderPipelineGlobalSettingsUtils.cs new file mode 100644 index 00000000000..aea40655402 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalRenderPipelineGlobalSettingsUtils.cs @@ -0,0 +1,20 @@ +using UnityEngine.Rendering; + +namespace Unity.RenderPipelines.Core.Runtime.Shared +{ +#if UNITY_EDITOR + internal class InternalRenderPipelineGlobalSettingsUtils + { + internal static bool TryMigrateRenderingLayersToTagManager(string[] renderingLayerNames) + where T : RenderPipeline + { + return Bridge.RenderPipelineEditorUtilityBridge.TryMigrateRenderingLayersToTagManager(renderingLayerNames); + } + + internal static void ClearMigratedRenderPipelines() + { + Bridge.RenderPipelineEditorUtilityBridge.ClearMigratedRenderPipelines(); + } + } +#endif +} diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalRenderPipelineGlobalSettingsUtils.cs.meta b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalRenderPipelineGlobalSettingsUtils.cs.meta new file mode 100644 index 00000000000..f23af2a3eb9 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/InternalRenderPipelineGlobalSettingsUtils.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 685e2bdf0a1b418cb068a423e3347aba +timeCreated: 1763574753 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/Unity.RenderPipelines.Core.Runtime.Shared.asmdef b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/Unity.RenderPipelines.Core.Runtime.Shared.asmdef index 6f9fd1c617d..5a1e1547224 100644 --- a/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/Unity.RenderPipelines.Core.Runtime.Shared.asmdef +++ b/Packages/com.unity.render-pipelines.core/Runtime-PrivateShared/Unity.RenderPipelines.Core.Runtime.Shared.asmdef @@ -2,7 +2,8 @@ "name": "Unity.RenderPipelines.Core.Runtime.Shared", "rootNamespace": "", "references": [ - "GUID:df380645f10b7bc4b97d4f5eb6303d95" + "GUID:df380645f10b7bc4b97d4f5eb6303d95", + "GUID:65f885ff41204234be23cc2446e7bb85" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Packages/com.unity.render-pipelines.core/Runtime/RenderGraph/Debug/RenderGraphDebugSession.cs b/Packages/com.unity.render-pipelines.core/Runtime/RenderGraph/Debug/RenderGraphDebugSession.cs index 8e3192bf2b3..ddca2c9eff5 100644 --- a/Packages/com.unity.render-pipelines.core/Runtime/RenderGraph/Debug/RenderGraphDebugSession.cs +++ b/Packages/com.unity.render-pipelines.core/Runtime/RenderGraph/Debug/RenderGraphDebugSession.cs @@ -158,9 +158,27 @@ public static void EndSession() } } - public static List GetRegisteredGraphs() => s_CurrentDebugSession.debugDataContainer.GetRenderGraphs(); + public static List s_EmptyRegisteredGraphs = new(); + public static List GetRegisteredGraphs() + { + if (s_CurrentDebugSession == null || s_CurrentDebugSession.debugDataContainer == null) + { + return s_EmptyRegisteredGraphs; + } + + return s_CurrentDebugSession.debugDataContainer.GetRenderGraphs(); + } - public static List GetExecutions(string graphName) => s_CurrentDebugSession.debugDataContainer.GetExecutions(graphName); + public static List s_EmptyExecutions = new(); + public static List GetExecutions(string graphName) + { + if (s_CurrentDebugSession == null || s_CurrentDebugSession.debugDataContainer == null) + { + return s_EmptyExecutions; + } + + return s_CurrentDebugSession.debugDataContainer.GetExecutions(graphName); + } public static DebugData GetDebugData(string renderGraph, EntityId executionId) { diff --git a/Packages/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Settings.md b/Packages/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Settings.md index 728e78c021f..46a108f0123 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Settings.md +++ b/Packages/com.unity.render-pipelines.high-definition/Documentation~/Ray-Tracing-Settings.md @@ -8,7 +8,7 @@ For more information about the ray tracing settings properties, refer to [Ray Tr ## Add objects to the Ray Tracing Acceleration Structure HDRP provides a utility function that adds objects to the ray tracing acceleration structure. -The function is `AddInstanceToRAS` and it takes a [Renderer](https://docs.unity3d.com/ScriptReference/Renderer.html)) a `HDEffectsParameters` parameter and two a booleans that tracks changes in the transform and material properties of the included game objects. +The function is `AddInstanceToRAS` and it takes a [Renderer](https://docs.unity3d.com/ScriptReference/Renderer.html) a `HDEffectsParameters` parameter and two a booleans that tracks changes in the transform and material properties of the included game objects. ``` using System.Collections; diff --git a/Packages/com.unity.render-pipelines.high-definition/Documentation~/creating-and-editing-lights-at-runtime.md b/Packages/com.unity.render-pipelines.high-definition/Documentation~/creating-and-editing-lights-at-runtime.md index 4fbcb36d480..aa98517df09 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Documentation~/creating-and-editing-lights-at-runtime.md +++ b/Packages/com.unity.render-pipelines.high-definition/Documentation~/creating-and-editing-lights-at-runtime.md @@ -21,7 +21,7 @@ public class LightScript : MonoBehaviour } ``` -There is also a [RemoveHDLight]((https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest?subfolder=/api/UnityEngine.Rendering.HighDefinition.GameObjectExtension.html#UnityEngine_Rendering_HighDefinition_GameObjectExtension_AddHDLight_UnityEngine_GameObject_UnityEngine_Rendering_HighDefinition_HDLightTypeAndShape_)) method to remove the light created with AddHDLight. +There is also a [RemoveHDLight](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest?subfolder=/api/UnityEngine.Rendering.HighDefinition.GameObjectExtension.html#UnityEngine_Rendering_HighDefinition_GameObjectExtension_AddHDLight_UnityEngine_GameObject_UnityEngine_Rendering_HighDefinition_HDLightTypeAndShape_) method to remove the light created with AddHDLight. Note: Another good way of spawning lights is simply by spawning prefabs of lights you configured in the editor, this is also more efficient than manually adding components and setting values. diff --git a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/CustomPassNodes.cs b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/CustomPassNodes.cs index 5edfcd5e1c8..424a027aa13 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/CustomPassNodes.cs +++ b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/CustomPassNodes.cs @@ -19,8 +19,6 @@ public CustomColorBufferNode() UpdateNodeAfterDeserialization(); } - public override string documentationURL => NodeUtils.GetDocumentationString("HD-Custom-Color"); - const int kUvInputSlotId = 0; const string kUvInputSlotName = "UV"; diff --git a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/EmissionNode.cs b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/EmissionNode.cs index c212be49ebf..3b43a6123c4 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/EmissionNode.cs +++ b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/EmissionNode.cs @@ -21,7 +21,7 @@ public EmissionNode() UpdateNodeAfterDeserialization(); } - public override string documentationURL => Documentation.GetPageLink("SGNode-Emission"); + public override string documentationURL => NodeUtils.GetDocumentationString("Emission"); [SerializeField] EmissiveIntensityUnit _intensityUnit; diff --git a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/ExposureNode.cs b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/ExposureNode.cs index 8febdec5409..e3ee515121e 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/ExposureNode.cs +++ b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/ExposureNode.cs @@ -36,8 +36,6 @@ public ExposureNode() UpdateNodeAfterDeserialization(); } - public override string documentationURL => Documentation.GetPageLink("SGNode-Exposure"); - [SerializeField] ExposureType m_ExposureType; [EnumControl("Type")] diff --git a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/FresnelEquationNode.cs b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/FresnelEquationNode.cs index 8ff0d46fd42..9adb39a1949 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/FresnelEquationNode.cs +++ b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/FresnelEquationNode.cs @@ -33,8 +33,6 @@ class HDFresnelEquationNode : AbstractMaterialNode const string kFresnelOutputSlotName = "Fresnel"; - public override string documentationURL => Documentation.GetPageLink("Fresnel-Equation-Node"); - private enum FresnelSlots { kDotVectorsInputSlotId, diff --git a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/SurfaceGradientResolveNormal.cs b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/SurfaceGradientResolveNormal.cs index 86a7b20a525..ad49a5ce72b 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/SurfaceGradientResolveNormal.cs +++ b/Packages/com.unity.render-pipelines.high-definition/Editor/Material/ShaderGraph/Nodes/SurfaceGradientResolveNormal.cs @@ -18,8 +18,6 @@ public SurfaceGradientResolveNormal() UpdateNodeAfterDeserialization(); } - public override string documentationURL => Documentation.GetPageLink("SurfaceGradientResolveNormal"); - const int kNormalInputSlotId = 0; const string kNormalInputSlotName = "Normal"; diff --git a/Packages/com.unity.render-pipelines.high-definition/Editor/PropertyDrawers/LookDevVolumeProfileSettingsPropertyDrawer.cs b/Packages/com.unity.render-pipelines.high-definition/Editor/PropertyDrawers/LookDevVolumeProfileSettingsPropertyDrawer.cs index 99cc74a5039..c34c90ca68b 100644 --- a/Packages/com.unity.render-pipelines.high-definition/Editor/PropertyDrawers/LookDevVolumeProfileSettingsPropertyDrawer.cs +++ b/Packages/com.unity.render-pipelines.high-definition/Editor/PropertyDrawers/LookDevVolumeProfileSettingsPropertyDrawer.cs @@ -13,6 +13,7 @@ class LookDevVolumeProfileSettingsPropertyDrawer : PropertyDrawer { VisualElement m_Root; Editor m_LookDevVolumeProfileEditor; + int m_LookDevVolumeProfileHash = -1; SerializedObject m_SettingsSerializedObject; SerializedProperty m_VolumeProfileSerializedProperty; EditorPrefBool m_DefaultVolumeProfileFoldoutExpanded; @@ -51,6 +52,14 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property) Editor GetLookDevDefaultVolumeProfileEditor(VolumeProfile lookDevAsset) { + int currentHash = (lookDevAsset != null) ? lookDevAsset.GetHashCode() : -1; + if (currentHash != m_LookDevVolumeProfileHash) + { + Editor.DestroyImmediate(m_LookDevVolumeProfileEditor); + m_LookDevVolumeProfileEditor = null; + m_LookDevVolumeProfileHash = currentHash; + } + Editor.CreateCachedEditor(lookDevAsset, typeof(VolumeProfileEditor), ref m_LookDevVolumeProfileEditor); return m_LookDevVolumeProfileEditor; } @@ -68,8 +77,12 @@ VisualElement CreateAssetFieldUI() { tooltip = k_LookDevVolumeProfileAssetLabel.tooltip, objectType = typeof(VolumeProfile), - value = m_VolumeProfileSerializedProperty.objectReferenceValue as VolumeProfile, + style = + { + flexShrink = 1, + } }; + field.BindProperty(m_VolumeProfileSerializedProperty); field.AddToClassList("unity-base-field__aligned"); //Align with other BaseField field.Q