Using Scorpio-csharp in Unity

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.