Scorpio-csharp is a solution to the issue of hot updates for all platforms in Unity games
Unity3d Publishing Platform Support:
Webplayer
PC (Windows Mac Linux)
IOS (including il2cpp)
Android
BlackBerry
Windows Phone 8
WebGL (Unity5.0beta)
Syntax reference JS syntax (90%) Specific use method reference Ulua
Hello World Example:
Using System;
Using Scorpio;
public class Program {
static void Main (string[] args) {
Script script = new script ();
Script. LoadLibrary ();
Console.WriteLine ("Return value is:" + script.) LoadString (@ "Print (" "Hello World" ")");
}
}
Examples of C # functions are called in the script:
String = Import_type ("System.String")
Print (String.Format ("{0}-{1}-{2}-{3}-{4}", 1,2,3,4,5))
Note: Import_type can directly register a C # class into a script where the class name must be the full path Import_type the loaded class must first call script. Pushassembly pressing into assemblies that can be loaded
For more examples please download source view
QQ Group: 245199668
attached Source: Https://github.com/qingfeng346/Scorpio-CSharp
Using Scorpio-csharp in Unity