大约有 806 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(508) Laya3.0_api(119) Laya2.0_api(72) Laya2.0_文档(29) Laya3.0_文档(25) laya_api(24) Laya_示例(21) Laya2.0_示例(8)
...有问题吗: Laya.loader.create(effectPath, Handler.create(this, this._onLoadEffectComplete, [effectPath])) private _onLoadEffectComplete(effectPath: string): void { let spriteEffect: Sprite3D = Laya.loader.getRes(effectPath) this._curRole.addChild(spriteEffect) let effectChilds: any = spriteEffe...
来源: Laya_社区 发布时间: 20180409
...相关结果 已邀请: 与内容相关的链接 提交 1 个回复 kylin_phone 赞同来自: laya.physics_.js_.zip 2021-03-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 永夜冰结 相关问题 sprite旋转以后,但是原来碰...
来源: Laya_社区 发布时间: 20210325
...om/avatar/2e9c1503-3c16-354c-7c82-4cd8508a1685?x-oss-process=image/resize,h_432,m_lfit 原因_loadTexture2D方法里面解析不出来地址类型,临时解决方案type给个默认值nativeimage 问题复现步骤,问题原因,都已找出来了,希望官方重视,给个好的解决...
来源: Laya_社区 发布时间: 20221014
...lt;string> = []; for (var i: number = 0; i < 2; ++i) { data.push("img_common_pinzhi0.png"); data.push("img_common_pinzhi1.png"); data.push("img_common_pinzhi2.png"); data.push("img_common_pinzhi3.png"); data.push("img_common_pinzhi4.png"); data.push("img_common_pinzhi5.png"); } // item使用...
来源: Laya_社区 发布时间: 20180410
...代码如下:listP是一个UI页面. 用this.lost1,空对象,但是用this._childs[5]是可以的 var lose1=new Laya.Animation(); lose1.loadAnimation("lose_1.ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChil...
来源: Laya_社区 发布时间: 20171025
...var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0, 0); oriDBArr[i] ...
来源: Laya_社区 发布时间: 20170224
...: // test drawToCanvas const sp1 = new Sprite(); sp1.loadImage('bet/cheer_1_3.png'); const sp2 = new Sprite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, 0); const canvas = htmlCanvas.getCanvas(); trace(can...
来源: Laya_社区 发布时间: 20171018
...到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 用canvas 2018-07-10 0 0 分享 微博 QZONE 微信 流光鸣_ 赞同来自: 是指微信里的Canvas么? 2018-07-10 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...
来源: Laya_社区 发布时间: 20180710
... unclepi 赞同来自: 我设置的一个 240x240的动画,代码如下_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBir...
来源: Laya_社区 发布时间: 20171026
2.12.2beta1 诸多bug 附件 : --> 无demo_看描述简单易懂.zip _onEnable错误调用.zip 3个bug示例查看GameUI类.zip 2021-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Fred 赞同来自:...
来源: Laya_社区 发布时间: 20211105