EmitHelper动态方法不支持IL2CPP

This commit is contained in:
Alex-Rachel
2025-03-17 17:31:42 +08:00
parent 202df9ff62
commit f4d89bb420
8 changed files with 9 additions and 205 deletions

View File

@@ -538,7 +538,7 @@ namespace GameLogic
private UIWindow CreateInstance(Type type)
{
UIWindow window = EmitHelper.CreateInstance(type) as UIWindow;
UIWindow window = Activator.CreateInstance(type) as UIWindow;
WindowAttribute attribute = Attribute.GetCustomAttribute(type, typeof(WindowAttribute)) as WindowAttribute;
if (window == null)