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

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

881. laya.ui.ViewStack_API3.0 [ 46%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setItems setSelfBounds set_anchorX set_anchorY set_bottom set_dataSour...

来源: Laya3.0_api 发布时间: 20231115

882. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 46%]

...ya.Sprite(); s.graphics.drawRect(10, 10, 580, 470, "#000000"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置...

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

883. 分包项目, 加载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

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

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

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

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

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

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

888. 这样的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

889. 将字节数组转为图片 [ 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

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