• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 230 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0094 秒)

221. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...求,例如: let str = await Editor.scene.runScript("window.eval", ` (function() { //do something return "hello"; }()) `); 4、场景进程向UI进程发送消息: //选中项目资源面板一个资源 EditorEnv.postMessageToPanel("ProjectPanel", "select", assetId); //调用自定义的Panel...

来源: Laya3.0_文档 发布时间: 20251010

222. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...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

223. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 34%]

...示例打地鼠发布打包后提示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

224. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 30%]

...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

225. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 27%]

...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

226. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 27%]

...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

227. 求ShuriKenParticle3D用法 [ 27%]

...let self = this;                 Laya.timer.loop(300, null, function () {                     console.log('8: ' + self.particleSystem.aliveParticleCount);                 });             }         }     } } 执行结果一直为0,...

来源: Laya_社区 发布时间: 20170605

228. 引擎 TiledMap 居然不支持图块翻转 [ 25%]

...------------------------------------------------------------------------- (function (exports, Laya) {     'use strict';     const TiledMapFlipConst = 1073741824;     const TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {  ...

来源: Laya_社区 发布时间: 20220627

229. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 20%]

...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

230. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 20%]

...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