Skip to content

Commit e825c95

Browse files
MiroBrodlovaUnityGitEvergreen
authored andcommitted
Migrate Mono APIs to CoreCLR-compatible APIs in com.unity.render-pipelines.high-definition
1 parent fb37597 commit e825c95

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Packages/com.unity.render-pipelines.high-definition/Editor/Material/LTCAreaLight/LTCTableGeneratorEditor.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
using System.IO;
55
using UnityEditor;
66
using System.Linq;
7+
#if UNITY_6000_5_OR_NEWER
8+
using UnityEngine.Assemblies;
9+
#endif
710

811
namespace UnityEngine.Rendering.HighDefinition.LTC
912
{
@@ -35,7 +38,11 @@ static Type[] ListAllBRDFTypes()
3538
// This function lists all the classes that implement the interface IBSDF
3639
List<Type> types = new List<Type>();
3740
Type searchInterface = typeof(IBRDF);
41+
#if UNITY_6000_5_OR_NEWER
42+
return CurrentAssemblies.GetLoadedAssemblies()
43+
#else
3844
return AppDomain.CurrentDomain.GetAssemblies()
45+
#endif
3946
.SelectMany(s => s.GetTypes())
4047
.Where(p => searchInterface.IsAssignableFrom(p) && !p.IsInterface).ToArray();
4148
}

0 commit comments

Comments
 (0)