大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...iwe上, 不是直接加到Laya.stage上 this.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start(); 2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相关问题 请问LayaAir中如何使图片以...
来源: Laya_社区 发布时间: 20180302
...teItem); //为列表赋值 list.array = data; //加载到舞台 Laya.stage.addChild(list); } /***渲染单元格时的回调方法***/ private function updateItem(cell:Item, index:int):void { //用获得的数据给图片更换皮肤 cell.img.skin=cell.dataSource; } /***选择单元格回调***/ pri...
来源: Laya2.0_文档 发布时间: 20210715
... init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); ...
来源: Laya_社区 发布时间: 20230419
... })(); function drawPentagram() { var canvas = new Sprite(); Laya.stage.addChild(canvas); var path = [336, 515, 338, 515, 341, 515, 349, 515, 369, 513, 391, 513, 408, 513, 419, 515, 441, 519, 459, 521, 471, 524, 480, 524, 485, 524, 491, 524, 497, 524, 508, 524, 519, 524, 529, 524, 540, 536, 54...
来源: Laya_社区 发布时间: 20181230
...ail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,怎么销毁,内存还是创建后的大小 2017-02-21 添加评...
来源: Laya_社区 发布时间: 20170221
...a3d可不可以打2个以上的平行光?我试过一个scene只能同时addChild一个平行光,一个点光,一个聚光 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian 赞同来自: 是的...
来源: Laya_社区 发布时间: 20180326
...ADED有什么区别?为什么对scene不起作用 var scene = Laya.stage.addChild(new Laya.Scene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });...
来源: Laya_社区 发布时间: 20170619
...omething(); })(); function drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画多边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 60,100, 50, 100, 50,80, 40, 80, 40, 90, 30,90, 30, 80,20, 80,20,90,0, 90], "#ffff00"); } })(); 绘制出来的多边形无法闭合 附件 : --> 2017-1...
来源: Laya_社区 发布时间: 20171219
...criptErrorn.sort is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function 3Ddemo加载Unity导出场景报错resou._removeReference is not a function 问题状态 最新...
来源: Laya_社区 发布时间: 20190329
...场景问题出现在哪呢?? //添加3D场景 var scene = Laya.stage.addChild(Laya.scene.load("LayaScene_test/test.ls")); 载入场景怎么什么也没有呢 然后是这样的结果 这是什么情况?? 附件 : --> 2017-08-07 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170807