Skip to content

Commit e3ba536

Browse files
Merge pull request #8236 from Unity-Technologies/fix/remove-mono-api
Migrate Mono APIs to CoreCLR-compatible APIs for com.unity.postprocessing
2 parents 4d0623f + 5f6fd15 commit e3ba536

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

com.unity.postprocessing/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
89
### Fixed
9-
-
10+
- Replaced deprecated Mono API with CoreCLR-compatible API
1011

1112
## [3.5.1] - 2025-09-19
1213

com.unity.postprocessing/PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
using UnityEditor;
1111
#endif
1212

13+
#if UNITY_6000_5_OR_NEWER
14+
using UnityEngine.Assemblies;
15+
#endif
16+
1317
namespace UnityEngine.Rendering.PostProcessing
1418
{
1519
using SceneManagement;
@@ -1211,7 +1215,11 @@ public static IEnumerable<Type> GetAllAssemblyTypes()
12111215
{
12121216
if (m_AssemblyTypes == null)
12131217
{
1218+
#if UNITY_6000_5_OR_NEWER
1219+
m_AssemblyTypes = CurrentAssemblies.GetLoadedAssemblies()
1220+
#else
12141221
m_AssemblyTypes = AppDomain.CurrentDomain.GetAssemblies()
1222+
#endif
12151223
.SelectMany(t =>
12161224
{
12171225
// Ugly hack to handle mis-versioned dlls

0 commit comments

Comments
 (0)