大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
... transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = document.getElementById("layaCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150); console.log("draw comple...
来源: Laya_社区 发布时间: 20170502
.../串盒子 this.chuanBox = new Laya.Rectangle(Laya.stage.width - boxWidth >> 1, Laya.stage.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox.y, this.chuanBox.width, this.chuanBox.height, "#FFFFEE", "#FFFFFF", 2); this.sag...
来源: Laya_社区 发布时间: 20181026
...自: 可能总得资源太大了,导致Out Of Memory了,通过菜单=>帮助=>开发人员工具可以看到具体的报错信息。 2020-06-19 0 0 分享 微博 QZONE 微信 隔壁老王 赞同来自: 请问题主,问题解决了没有,遇到了同样的问题 2020-07-09 0 1 分享 ...
来源: Laya_社区 发布时间: 20200225
...工具Cannot assign to read only property 'window' of object '#<Window>' Cannot assign to read only property 'window' of object '#<Window>'这个问题到底怎么解决?有官方的回复了么? 我这里将ES6转ES5取消后,真机调试又不行“缺少文件,ERR :file game...
来源: Laya_社区 发布时间: 20190825
...,无法调用场景内的子物体 1. 打开场景(带onComplete事件)-> onOpened()中添加子对象(View-View节点下有个Box) 2.onOpened函数周期结束,也收到了场景complete的回调->这个时候需去调用View下面的Box。 Box为undefined。 3. View.onEnable()中 Box存...
来源: Laya_社区 发布时间: 20200611
...文档LayaAir3-IDE可视化2D物理编辑详解 Author : Charley Version >= LayaAir 3.2 一、新手必读 1.1 前言 本篇涉及2D物理IDE可视化编辑的全部内容,也就是说,不需要写一行代码,就可以通过可视化操作完成了物理的配置与效果实现。 如果...
来源: Laya3.0_文档 发布时间: 20251010
...*/ __proto.getInt16=function(){ if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds"; var us=this._d_.getInt16(this._pos_,this._xd_); this._pos_+=2; return us; } 只在那个 If 那一行报错了 ...
来源: Laya_社区 发布时间: 20181025
...d(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')}); } 2018-08-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zyx 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用...
来源: Laya_社区 发布时间: 20180817
...繁华 赞同来自: constructor() { super(); Laya.timer.once(1,this,()=> { Laya.Scene3D.load('LayaScene_Main/Conventional/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene); })); }); } 这样的加载一定包异常,不延时直接在构造函数...
来源: Laya_社区 发布时间: 20190719
...esources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码如上,代码很简单。 下面是打印了Laya.Resource._idResourcesMap的截图 ...
来源: Laya_社区 发布时间: 20231130