• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

881. 分包项目, 加载js时报错 [ 45%]

...   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

882. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 45%]

...钮 // videoElement.autoplay = "autoplay";//自动播放 // videoElement.poster = GoldConsts.imgUrl; //设置在视频播放之前所显示的图片的 URL。 // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", true); videoElement....

来源: Laya_社区 发布时间: 20180313

883. laya.ui.VBox_API3.0 [ 45%]

...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

884. new Laya.Templet() 时,说这不是一个constructor [ 45%]

...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

885. laya.ui.HBox_API3.0 [ 45%]

...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

886. 这样的panel请问如何实现比较好? [ 45%]

...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

887. 将字节数组转为图片 [ 45%]

...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

888. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 45%]

...板创建动画播放对象 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

889. sprite做的按钮点击无反应? [ 45%]

...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

890. 发布项目“是否压缩混淆js(耗时)”的bug [ 45%]

...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