大约有 520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0043 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加collidershape floorCollicar.colliderShape = new BoxColliderSha...
来源: Laya_社区 发布时间: 20190417
...ureScreen(function(arrayBuff,width,height){ window.image = window.document.createElement("img"); window.image.putImageData(arrayBuff,width,height); }) } } E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaai...
来源: Laya_社区 发布时间: 20180227
...item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, progressHandler, item.type, item.pr...
来源: Laya_社区 发布时间: 20171226
...PS的一些问题咨询! 想将以前的页游项目转成h5 Laya.loader.create 进度回调函数执行两次 drawTexture 画出来的数据会有以前的数据 问题状态 最新活动: 2017-07-18 10:10 浏览: 706 关注: 2 人
来源: Laya_社区 发布时间: 20170717
...浏览: 1300 关注: 2 人 chengluliang • 2017-07-31 17:42 就是用Body.create({parts: parts, collisionFilter: {category: carCategory} 这种组合的创建 组件里面的render完全没有效果 chengluliang • 2017-08-04 15:46 能解决这个组合纹理无法显示的问题吗? 等几天...
来源: Laya_社区 发布时间: 20170731
...ost:3000/shoot/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log出来是undefined的,请问如何破?还有,对于图集的存放位置有什么要求吗(我不是用...
来源: Laya_社区 发布时间: 20170223
...f8.js:1 8The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. <URL> Scene.ts:402 Error loading Loading.ls: Error: unknown type 'xmaaYG8AQ1yC07pr_JvyPA' (anonymous) @ Scene.ts:402 Promise.then (async) load @ Scene.ts:395 open @ Scene.ts:44...
来源: Laya_社区 发布时间: 20240724
...ot;fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图...
来源: Laya_社区 发布时间: 20180314
...Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani....
来源: Laya2.0_示例 发布时间: 20251219
...ll"; Laya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); })(); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒)...
来源: Laya_示例 发布时间: 20251219