I this particular use case, I would like to use TextScanner to parse the result of a WWW get. I have the WWW roundtrip working just fine, but cannot find either a) the documentation of the JavaScript String class that Unity uses nor b) how to access C Sharp classes from JavaScript classes.
Both C# and Javascript share the .net String class from mono. Documentation for it can be found here. You can also use the MSDN documentation for it if you wish.
As far as using C# classes from javascript, I know the perlin noise scene in the procedural example project does just that. Might be something to look at for pointers.
It’s about compilation order…make sure C# scripts get compiled first, in order to use them from Javascript. Look in the docs if you need more info on that.
Thank you for the quick response. I had checked that documentation while looking for a String.Split(“,”); but this was throwing errors… now I see that the Split function takes a char array and not a String class, so calling “test”.Split(“e”[0]); works but “test”.Split(“e”); does not. Whoops! Should have read the documentation a little closer.
I will still look into the perlin noise scene in the procedural example project for the C#/JavaScript integration as we have some other functions that require it.