大约有 6 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
...p) { ... // 注册Steam初始化函数 jsvm_value fnInitSteam; jsvm_create_function(env, "initializeSteam", SIZE_MAX, jsInitializeSteam, nullptr, &fnInitSteam); jsvm_set_named_property(env, exp, "initializeSteam", fnInitSteam); } } 2.2 生成动态链接库 生成动态链接库与其使用的...
来源: Laya3.0_文档 发布时间: 20251010
...(ret); conch.postAsyncMessage("asyncMessage", "asyncMessage from js").then(function (data) { alert(data); }) 1.2 在原生端中主动执行JS端脚本 iOS/OC执行JS脚本: [[conchRuntime GetIOSConchRuntime] runJS:@"alert('hello')"]; Android/Java执行JS脚本: ConchJNI.RunJS("alert('hello worl...
来源: Laya3.0_文档 发布时间: 20251010
...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...
来源: Laya3.0_文档 发布时间: 20251010
...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...
来源: Laya3.0_文档 发布时间: 20250104
...会打扰到用户。 1,属性 属性 类型 描述 onreadystatechange function 一个JavaScript函数对象,当readyState属性改变时会调用它。 readyState unsigned short 请求的五种状态 response varies 响应实体的类型由 responseType 来指定, 可以是 ArrayBuffer ,Blo...
来源: Laya3.0_文档 发布时间: 20250104
...求,例如: let str = await Editor.scene.runScript("window.eval", ` (function() { //do something return "hello"; }()) `); 4、场景进程向UI进程发送消息: //选中项目资源面板一个资源 EditorEnv.postMessageToPanel("ProjectPanel", "select", assetId); //调用自定义的Panel...
来源: Laya3.0_文档 发布时间: 20251010