From cc97131957ca3c0bfd4d98e49598af3164c0c04a Mon Sep 17 00:00:00 2001 From: Miro Brodlova Date: Fri, 21 Nov 2025 13:12:45 +0100 Subject: [PATCH 1/2] Migrate AppDomain.GetAssemblies() in PostProcessing RuntimeUtilities - RuntimeUtilities.cs: Add conditional compilation (line 1214) - Added using UnityEngine.Assemblies with conditional directive - Maintains backward compatibility with older Unity versions --- .../PostProcessing/Runtime/Utils/RuntimeUtilities.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/com.unity.postprocessing/PostProcessing/Runtime/Utils/RuntimeUtilities.cs b/com.unity.postprocessing/PostProcessing/Runtime/Utils/RuntimeUtilities.cs index 8e56107863f..cf0eb3588b0 100644 --- a/com.unity.postprocessing/PostProcessing/Runtime/Utils/RuntimeUtilities.cs +++ b/com.unity.postprocessing/PostProcessing/Runtime/Utils/RuntimeUtilities.cs @@ -10,6 +10,10 @@ using UnityEditor; #endif +#if UNITY_6000_5_OR_NEWER +using UnityEngine.Assemblies; +#endif + namespace UnityEngine.Rendering.PostProcessing { using SceneManagement; @@ -1211,7 +1215,11 @@ public static IEnumerable GetAllAssemblyTypes() { if (m_AssemblyTypes == null) { +#if UNITY_6000_5_OR_NEWER + m_AssemblyTypes = CurrentAssemblies.GetLoadedAssemblies() +#else m_AssemblyTypes = AppDomain.CurrentDomain.GetAssemblies() +#endif .SelectMany(t => { // Ugly hack to handle mis-versioned dlls From 40bcae95a8096f07eb1c234514d6372e65523c93 Mon Sep 17 00:00:00 2001 From: Miro Brodlova Date: Tue, 9 Dec 2025 11:03:22 +0100 Subject: [PATCH 2/2] Add CHANGELOG entry for CoreCLR API migration - Added Unreleased section with fix note for Mono to CoreCLR API migration --- com.unity.postprocessing/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/com.unity.postprocessing/CHANGELOG.md b/com.unity.postprocessing/CHANGELOG.md index 93505f3f292..0fb1fca1990 100644 --- a/com.unity.postprocessing/CHANGELOG.md +++ b/com.unity.postprocessing/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed +- Replaced deprecated Mono API with CoreCLR-compatible API + ## [3.5.0] - 2025-06-18 ### Added