io.nekonya.tinax.xcomponent.ilruntime
v6.6.3
Published
ILRuntime extension package for TinaX.XComponent.
Downloads
14
Maintainers
Readme
TinaX Framework - XComponent extension for ILRuntime.
TinaX is a Unity-based framework, simple , complete and delightful, ready to use.
TinaX provides functionality in the form of "Unity packages".
TinaX.XComponent.ILRuntime
is an extension package for TinaX.ILRuntime, which is used for more pleasant use of XComponent in hot update code.
package name: io.nekonya.tinax.xcomponent.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.RegisterXComponent(); //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.xcomponent.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.xcomponent.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.XComponent.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.XComponent.ILRuntime/releases
Dependencies
- io.nekonya.tinax.ilruntime :
git://github.com/yomunsam/TinaX.ILRuntime.git
- io.nekonya.tinax.xcomponent :
git://github.com/yomunsam/TinaX.XComponent.git
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.