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

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

821. laya.ui.Image_API3.0 [ 66%]

...象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 Image 类的实例对象 image ,并传入它的皮肤。 image.x = 100;//设置 image 对象的属性 ...

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

822. 2.0字体比较小的时候,某些字显示不全 [ 66%]

...xtWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } } }上面是我的简单测试代码: 图片是2.0版本和1.8版本的字体显示对比。 2.0版本的ggg下面部分都被截断了。     附件 : --> 2019-06-06 添加评论 免费帖 --> 分享 微...

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

823. UI组件对齐方式奇奇怪怪 [ 66%]

...ew Box(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Box(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _child.bottom = 0 _parent.addChild(_child); 按理说 我设置了额child的bottom为0 应该是 靠底部对齐才对啊 为什...

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

824. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 66%]

...a.stage.bgColor = "#232628"; this.sp_video = new Laya.Sprite(); Laya.stage.addChild(this.sp_video);//添加到舞台 this.sp_video.pos(10,100); Laya.timer.loop(150, this, showframe); })(); function showframe() { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,com...

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

825. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 66%]

...r = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,s...

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

826. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 66%]

...;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMous...

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

827. 物理引擎显示旋转问题 [ 66%]

...{         var gameWorld = new Sprite();         Laya.stage.addChild(gameWorld);         // 初始化物理引擎         engine = Matter.Engine.create({             enableSleeping: true         });         Matter.Engine.run(engine);    ...

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

828. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 66%]

...ask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 能否把你的测试...

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

829. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 66%]

...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } new GameMain(); 海货 • 2018-07-15 16:17 上边是代码 wq • 2018-08-01 14:00 那不是很麻烦,要全部注释忘。 nonfiction • 2018-09-04 11:33 1.7.19,新建示例项目,发布到微信...

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

830. 关于项目分包的问题?? [ 66%]

...ign = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目,找到LoginView,手动调整分包的js文件路径(由于分包期间做过调整,所有分包后的js文件统一放在h5文...

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