warbler / SharpMonoInjector

A tool for injecting assemblies into Mono embedded applications, commonly Unity Engine based games
MIT License
310 stars 108 forks source link

Accessing objects which are inside the game #2

Closed Igie closed 6 years ago

Igie commented 6 years ago

Hello, is it possible to access objects inside the game and do something with them? So far I tried GetComponent("SceneManager"); and it returns null. I'm sure there is SceneManager class inside from dotNetPeek. Generally I would like some examples of changing elements in game instead of creating new. Thank you very much in advance.

Igie commented 6 years ago

Realized that you can add Assembly-CSharp.dll reference to your injected assembly reference list and you can use it to access everything.