Comments (6)
你概念上搞混了。
JsEnv是一个虚拟机,多个虚拟机间相互隔离,和你nodejs启动了多个进程一样。
继承引擎类功能会自己启动一个虚拟机,和你在gameinstance启动的虚拟机不是一个虚拟机。
from puerts.
有没有办法解决这种情况呢?能在游戏中只存在一个虚拟机么?在很多情况下是需要actor创建完成后通知脚本层做一些逻辑的。
from puerts.
有没有办法解决这种情况呢?能在游戏中只存在一个虚拟机么?在很多情况下是需要actor创建完成后通知脚本层做一些逻辑的。
什么叫解决?你不启动多个不就只有一个了吗?
你用node a.js启动一个进程,node b.js启动一个进程,然后问为啥a.js的变量在b.js那访问不了?你别启动两个,把逻辑都加载到一个进程,或者两个进程间通过ipc交流。
from puerts.
demo中gameinstance启动jsenv这是示例,不是必要的,正如helloworld示例程序不是让你在每个程序都打印一下helloworld。
继承引擎类功能也可以不开,不开就没有虚拟机。
from puerts.
仔细看文档最新的提交内容。
from puerts.
好的,我大概知道了,还以为必须要初始化一个虚拟机。感谢!
from puerts.
Related Issues (20)
- [UE] Bug: TArray<uint8> 通过 FArrayBuffer 传入 ts Uint8Array,内容不匹配 HOT 2
- [Unity] Bug: RenderTextureFormat.RFloat crashes the editor during RenderTexture initialization HOT 4
- [UE] tsc怎么转换单个ts到js? HOT 1
- [UE] unreal有没有StaticWrapper功能 HOT 2
- [UE] Question:行为树蓝图里无法找到puerts生成的BTTask_BlueprintBase蓝图。 HOT 3
- [UE] question How to use websocket in puerts
- [UE] import ue问题 HOT 1
- [UE] puerts gen tools 这个工具是不是没有开源? HOT 1
- [UE] Bug: 返回UStruct指针的函数导给Ts,Ts访问对应函数时,如果返回值是null,会崩溃
- [Unity] v8 和 nodejs 加载 js 模块的行为不一致 HOT 2
- [Unity]构建native_src_il2cpp的win32版本报C1001: 内部编译器错误 HOT 1
- [Unity]xil2cpp的一些待改进点 HOT 5
- [UE] Bug: 添加--expose-gc参数启动v8时崩溃 HOT 2
- [Unity] Question: What's the difference between PuerTS_V8_10_2.1.0.tgz and PuerTS_V8_2.1.0.tgz in the latest release? HOT 3
- [Unity] Bug: When installed through OpenUPM, many files in PuerTS package are missing .meta files HOT 2
- [Unity] Bug: Top level await: SyntaxError: Unexpected reserved word HOT 1
- [Unity] Bug: new JsEnv() can't be always called on a separate thread in the Editor
- [UE] Bug: rider下直接编译工程,会有The "CheckIfPackageReferenceShouldBeFrameworkReference" task could not be loaded的报错 HOT 1
- [UE] Bug: UStruct Property不应该忽略BlueprintReadonly Meta标记
- [UE] 关于插件对开启AsyncLoadingThread的支持 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puerts.