2

I want to modify a method of UnityEngine.dll at runtime. How can i do it?

  • 1
    Reflection is hard and so far possible mostly not a good approach in Unity. What is the intended purpose? You might be running in an xy-problem. – Pinke Helga Jul 28 '18 at 15:23
  • most probably your problem can be solved using delegates. just create a public `Action` of `Func` and assign it. when you want to change what it does, just assign something else. – Jinjinov Jul 28 '18 at 16:00
  • whatever you are trying to achieve here is probably barking at the wrong tree – zambari Jul 28 '18 at 18:52
  • Possible duplicate of [Dynamically replace the contents of a C# method?](https://stackoverflow.com/questions/7299097/dynamically-replace-the-contents-of-a-c-sharp-method) – Ňuf Sep 03 '18 at 21:49

0 Answers0