Before i use il2cpp,i use load assembly function to realize hot update,but when i use il2cpp,it looks can not do before?
Is il2cpp support load a assembly(C#) on runtime?If support,is different on use Mono?
there is some sample script,it run success on Mono environment:
string assFullName = "MainLogic.dll";
string classFullName = "MainLogic.Program";
string methodName = "Main";
System.Reflection.Assembly ass = System.Reflection.Assembly.LoadFile(assFullName);
if(ass==null)
return;
Type classType = ass.GetType(classFullName);
if (classType == null)
return;
System.Reflection.MethodInfo method = classType.GetMethod(methodName,
System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
if (method == null)
return;
method.Invoke(null, null);