6.6.5 • Published 3 years ago

io.nekonya.tinax.uikit.ilruntime v6.6.5

Weekly downloads
158
License
-
Repository
-
Last release
3 years ago

TinaX Framework - UIKit extension for ILRuntime.

LICENSE LICENSE

TinaX is a Unity-based framework, simple , complete and delightful, ready to use.

TinaX provides functionality in the form of "Unity packages".

TinaX.UIKit.ILRuntime is an extension package for TinaX.ILRuntime, which is used for more pleasant use of UIKit in hot update code.

package name: io.nekonya.tinax.uikit.ilruntime

"Readme" in other languages :


Usage

Invoke register method when framework is initializing:

using TinaX;
using TinaX.XILRuntime;
using TinaX.XILRuntime.Registers;

namespace Nekonya.Example
{
    public class AppBootstrap : IXBootstrap
    {
        public void OnInit(IXCore core)
        {
            var xil = core.GetService<IXILRuntime>(); 
            xil.RegisterUIKit(); //extension method, namespace "TinaX.XILRuntime.Registers"
        }
        public void OnStart(IXCore core) { }
        public void OnQuit() { }
        public void OnAppRestart() { }
    }
}

Install this package

Install via openupm

# Install openupm-cli if not installed.
npm install -g openupm-cli
# OR yarn global add openupm-cli

#run install in your project root folder
openupm add io.nekonya.tinax.uikit.ilruntime

Install via npm (UPM)

Modify Packages/manifest.json file in your project, and add the following code before "dependencies" node of this file:

"scopedRegistries": [
    {
        "name": "TinaX",
        "url": "https://registry.npmjs.org",
        "scopes": [
            "io.nekonya",
            "com.ourpalm"
        ]
    },
    {
        "name": "package.openupm.com",
        "url": "https://package.openupm.com",
        "scopes": [
            "com.cysharp.unitask",
            "com.neuecc.unirx"
        ]
    }
],

If after doing the above, you still cannot find the relevant Packages for TinaX in the "Unity Package Manager" window, You can also try refreshing, restarting the editor, or manually adding the following configuration to "dependencies" node.

"io.nekonya.tinax.uikit.ilruntime" : "6.6.1"

Install via git UPM:

You can use the following to install and use this package in UPM GUI.

git://github.com/yomunsam/TinaX.UIKit.ILRuntime.git

If you want to set a target version, you can use release tag like #6.6.1. for detail you can see this page: https://github.com/yomunsam/TinaX.UIKit.ILRuntime/releases

Dependencies

if you install packages by git UPM, You need to install the dependencies manually. Or dependencies will installed automatically by NPM / OpenUPM


Learn TinaX

You can find out how to use the various features of TinaX in the documentation


Third-Party

The following excellent third-party libraries are used in this project:

  • ILRuntime : Pure C# IL Intepreter Runtime, which is fast and reliable for scripting requirement on enviorments, where jitting isn't possible.