Skip to content
No description, website, or topics provided.
TypeScript HTML CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This project was generated with Angular CLI version 7.0.4.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.


Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.


Example Angular and Unity integration using:

  • Unity
  • Angular 6.1.x


npm install


npm start

Then view the site at:


Creating a compatible Unity project

To communicate between JavaScript and Unity you need a few things:

  1. Create a Unity Project with GameObject > Controller.cs:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using System.Runtime.InteropServices;

    public class Controller : MonoBehaviour {

        private static extern void SendMessageToWeb(string msg);

        public void ReceiveMessageFromWeb(string msg) {
            Debug.Log("Controller.ReceiveMessageFromWeb: " + msg);

        // Use this for initialization
        void Start() {
            SendMessageToWeb("Hello from Unity");

        // Update is called once per frame
        void Update() {

  1. Add a file to the Unity project at: /Assets/Plugins/WebInterface.jslib containing:
    mergeInto(LibraryManager.library, {
    SendMessageToWeb: function (str) {
  1. Build the project as WebGL so that it creates the files:
  • demo.json
  • demo.wasm.code.unityweb
  • demo.wasm.framework.unityweb
  1. Copy the generated files to this project folder:


  2. Embed your generated files using the reusable Angular component:

Directory structure

src/                       --> Frontend sources files
unity-src/                 --> Unity script examples


For more information please contact kmturley

You can’t perform that action at this time.