# vuenity **Repository Path**: jjhoc/vuenity ## Basic Information - **Project Name**: vuenity - **Description**: A Vue.js wrapper with communications for WebGL Unity games. - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-09-24 - **Last Updated**: 2021-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vuenity A Vue.js wrapper component for Unity WebGL player based on [react-unity-webgl](https://www.npmjs.com/package/react-unity-webgl), with in and out communications. Supports typescript; ## Installation `npm install --save vuenity` ## Usage ```html ``` `Build` folder should be in your `public` folder. In your Unity project, under `Assets/Plugins/WebGL/` (or anywhere else in assets) create a `VuePlugin.jslib` with: ```js mergeInto(LibraryManager.library, NiceWords: function(message) { VueUnityWebGL.NiceWords(message); } }); ``` And finally, in one of your `C#` scripts: ```cs using UnityEngine; using System.Runtime.InteropServices; public class GameController : MonoBehaviour { [DllImport("__Internal")] private static extern void NiceWords(string message); public void NiceWords (string message) { NiceWords(message); } } ```