I know of some ways to do this with standard c#.
But I am wondering is there anyway to do it on iOS?
I know of some ways to do this with standard c#.
But I am wondering is there anyway to do it on iOS?
Unity iOS uses AOT compilation, so no, sorry; eval() in Unityscript won’t work on iOS either. I don’t know if Apple would actually allow that anyway.
–Eric
Like eric said, as far as I know, apple does not allow dynamic code compilation. I managed to do this in standalone some time ago by creating a dynamic dll and adding it at runtime to the app domain, but was a bit of a nightmare to be honest and was giving me a lot of issues when building the standalone. There were some libraries that is available in the editor that weren’t in the standalone.