diff --git a/com.unity.postprocessing/CHANGELOG.md b/com.unity.postprocessing/CHANGELOG.md index bc8d4efac23..f7e59af8488 100644 --- a/com.unity.postprocessing/CHANGELOG.md +++ b/com.unity.postprocessing/CHANGELOG.md @@ -5,8 +5,9 @@ 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.1] - 2025-09-19 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