ngx-unity
v0.0.1
Published
Reusable Angular library for embedding Unity WebGL builds.
Readme
ngx-unity
Reusable Angular library for embedding Unity WebGL builds.
Exports
NgxUnityViewport— Component that loads a Unity WebGL build into a<canvas>, with automatic mock fallback for development.IUnityInstance— TypeScript interface matching the object returned by Unity'screateUnityInstance().createMockUnityInstance()— Testing utility for creating a mockIUnityInstance.
Usage
<ngx-unity-viewport
buildPath="unity"
height="400px"
[mockFactory]="myMockFactory"
(instanceReady)="onReady($event)" />Building
ng build ngx-unityPublishing
cd dist/ngx-unity
npm publishSee the root README for full documentation.
