Hi,
I am creating a dll file for my AI engine.But i would love to acess other script as well
Is it possible to acess a script (say “Player Health Script” in Standard Assets Folder) from a dll project (which is inseide Unity Plugin folder)
if so would anyone be kind enough to guide me to do this
Thanks
TonyLi
2
Since the DLL is compiled without knowledge of the scripts in the Assets, you’ll have to use reflection. Here’s a good tutorial on using reflection.
Note that if you’re building for iOS, you’ll probably have to include a link.xml file so the scripts don’t get stripped from the build.