大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
... v.graphics.drawCircle(50, 50, 100, "#000000"); v.pos(100, 100); this.addChild(v); } } } 然后, 报错就在Box上: Uncaught TypeError: Cannot read property 'Box' of undefined at eval (eval at __proto.complete (Main.max...
来源: Laya_社区 发布时间: 20170725
...钮 // videoElement.autoplay = "autoplay";//自动播放 // videoElement.poster = GoldConsts.imgUrl; //设置在视频播放之前所显示的图片的 URL。 // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", true); videoElement....
来源: Laya_社区 发布时间: 20180313
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache refresh removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSourc...
来源: Laya3.0_api 发布时间: 20231115
...ot(512/2,304/2);//rectBounds.width/2,rectBounds.height/2); this.aniFighter.pos(Laya.stage.width/2,Laya.stage.height/2); iamnst • 2018-12-12 22:11 在编辑模式下,引入相关类库就可以了 狄 • 2018-11-30 16:47 请问有解决吗?我也遇到同样的问题
来源: Laya_社区 发布时间: 20181023
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache refresh removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSourc...
来源: Laya3.0_api 发布时间: 20231115
...ate init() { for (var i = 0; i < 10; i++) { var item = new Item(); item.pos(0, i * (item.height + 1)); this.container.addChild(item); } } } 3,加载资源,完成后再加载界面 import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { Laya.init(500, 1000, WebGL); Laya.st...
来源: Laya_社区 发布时间: 20180810
...loadImage(url); addChild(sp); sp.pos(100, 200); trace("url=" + url);//blob:file%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410 trace(sp.width);//0 /** * 其他调试信息打印...
来源: Laya_社区 发布时间: 20170417
...板创建动画播放对象 let hero = this.templet.buildArmature(1); hero.pos(200, 0); //切换动画皮肤 hero.showSkinByIndex(0); //播放 hero.play(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroCli...
来源: Laya_社区 发布时间: 20180905
...0.5-43, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(btn); btn.pos((stageWd - w) * 0.5, (stageHt - h) * 0.5-50); 2017-01-20 0 1 分享 微博 QZONE 微信 ohkei - as3、as2、h5 赞同来自: 感谢感谢!! 2017-01-20 0 0 分享 微博 QZONE 微信 lei159130 赞同来自: 研究了n...
来源: Laya_社区 发布时间: 20170120
...n name «of», expected punc «;»","filename":"0","line":107395,"col":26,"pos":3691880} 2018-04-13 0 0 分享 微博 QZONE 微信 131*****785 赞同来自: 我直接用uglifyjs 压缩是报这样的错误: E:\new_work\uglify>uglifyjs code.js > code.min.js Parse error at code.js:107395,26 ...
来源: Laya_社区 发布时间: 20180411