unity-webgl

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unity-webgl - npm Package Compare versions

Comparing version

to
2.0.2

@@ -11,3 +11,3 @@ {

],
"version": "2.0.1",
"version": "2.0.2",
"main": "dist/UnityWebgl.min.js",

@@ -62,3 +62,2 @@ "module": "dist/UnityWebgl.esm.js",

"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.12.0",
"postcss": "^8.3.11",

@@ -71,2 +70,3 @@ "rollup": "^2.59.0",

"rollup-plugin-vue": "5.1.9",
"sass": "~1.34.0",
"sass-loader": "^8.0.2",

@@ -73,0 +73,0 @@ "vue": "^2.6.14",

@@ -5,3 +5,3 @@ # unity-webgl

UnityWebgl.js 提供了一种简单的解决方案,用于在 webApp 或 Vue.js 项目中嵌入 Unity WebGL,并通过API在 webApp 和 Unity 之间进行双向通信。
UnityWebgl.js 提供了一种简单的解决方案,用于在 webApp 或 Vue.js (支持`Vue2.x` & `Vue3.x`) 项目中嵌入 Unity WebGL,并通过API在 webApp 和 Unity 之间进行双向通信。

@@ -12,5 +12,5 @@ based on [react-unity-webgl](https://github.com/jeffreylanters/react-unity-webgl)

- 💊 Simple and flexible to use
- 📮 two-way communication (webApp, Unity)
- 📮 two-way communication (`webApp`, `Unity`)
- 🛠 Built-in event handler
- 🧬 Available for `Vue.js`
- 🧬 Available for `Vue.js` (`vue@2.x` & `vue@3.x`)

@@ -88,6 +88,6 @@ ## API

var Unity = new UnityWebgl('#canvas', {
loaderUrl: 'Build/OUT_BIM.loader.js',
dataUrl: "Build/OUT_BIM.data",
frameworkUrl: "Build/OUT_BIM.framework.js",
codeUrl: "Build/OUT_BIM.wasm"
loaderUrl: '/Build/unity.loader.js',
dataUrl: "/Build/unity.data",
frameworkUrl: "/Build/unity.framework.js",
codeUrl: "/Build/unity.wasm"
})

@@ -126,6 +126,6 @@

var Unity = new UnityWebgl({
loaderUrl: 'Build/OUT_BIM.loader.js',
dataUrl: "Build/OUT_BIM.data",
frameworkUrl: "Build/OUT_BIM.framework.js",
codeUrl: "Build/OUT_BIM.wasm",
loaderUrl: '/Build/unity.loader.js',
dataUrl: "/Build/unity.data",
frameworkUrl: "/Build/unity.framework.js",
codeUrl: "/Build/unity.wasm",
streamingAssetsUrl: "StreamingAssets",

@@ -153,6 +153,6 @@ companyName: "DefaultCompany",

const Unity = new UnityWebgl({
loaderUrl: 'Build/OUT_BIM.loader.js',
dataUrl: "Build/OUT_BIM.data",
frameworkUrl: "Build/OUT_BIM.framework.js",
codeUrl: "Build/OUT_BIM.wasm"
loaderUrl: '/Build/unity.loader.js',
dataUrl: "/Build/unity.data",
frameworkUrl: "/Build/unity.framework.js",
codeUrl: "/Build/unity.wasm"
})

@@ -162,3 +162,3 @@

name: 'Unity',
component: {
components: {
Unity: UnityWebgl.vueComponent

@@ -165,0 +165,0 @@ },