大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)
...求,例如: let str = await Editor.scene.runScript("window.eval", ` (function() { //do something return "hello"; }()) `); 4、场景进程向UI进程发送消息: //选中项目资源面板一个资源 EditorEnv.postMessageToPanel("ProjectPanel", "select", assetId); //调用自定义的Panel...
来源: Laya3.0_文档 发布时间: 20251010
...ge方法中执行getFriendCloudStorage方法,修改后的方法如下: function init() { wx.onMessage((data) => { console.log("onMessage", data); if (data.type === "updateViewPort") { Layout.updateViewPort(data.box); draw(POWERRANK); } else if (data.type === 'close') { Layout.clear(); } /** *...
来源: Laya3.0_文档 发布时间: 20251010
...示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Conne...
来源: Laya_社区 发布时间: 20171218
...ar mark = 0; if(Laya.Browser.onMiniGame){ Laya.Browser.window.wx.onMessage(function(data){//微信接受信息 if(data.url == "res/atlas/test.atlas" || data.url == "test/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); ...
来源: Laya_社区 发布时间: 20190307
...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
...let self = this; Laya.timer.loop(300, null, function () { console.log('8: ' + self.particleSystem.aliveParticleCount); }); } } } } 执行结果一直为0,...
来源: Laya_社区 发布时间: 20170605
...------------------------------------------------------------------------- (function (exports, Laya) { 'use strict'; const TiledMapFlipConst = 1073741824; const TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { ...
来源: Laya_社区 发布时间: 20220627
...Laya.Scene3D.load("Conventional/SampleScene.ls", Laya.Handler.create(null, function (_Scene3D: Laya.Scene3D) { //添加3D场景到舞台 Laya.stage.addChild(_Scene3D); let _camera = _Scene3D.getChildByName("Main Camera") as Laya.Camera; _camera.clearFlag = Laya.CameraClearFlags.Sky; //从场景中...
来源: Laya2.0_文档 发布时间: 20210715
...aya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh) { //读取桌子模型节点对象,添加到3D场景节点下, var table: Sprite3D = this.scene.addChild(new Laya.Sprite3D(res)); //给桌子节点对象添加刚体碰撞器 var rigidBody = table...
来源: Laya3.0_文档 发布时间: 20251010