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

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

671. Laya.Sprite loadImage 参数问题 [ 51%]

...dimage的描述是:   loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编...

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

672. 为什么new不出Rectangle的类,提示not defined [ 51%]

...10,10,10,10);     console.log(abc); 代码。 Rectangle {x: 10, y: 10, width: 10, height: 10} 控制台结果, 综上,你的引擎环境有问题。 2018-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 进击的猎人 相关...

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

673. 怎么在不同时间显示MovieClip的多个实例 [ 51%]

...(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行后生成一个新的MovieClip实例,然而会把旧的MovieCip销毁掉,要怎么解决这个问题,求指教...

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

674. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 51%]

...多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p>          * @param url       图片地址。          * @param complete  (可选)加载完成回调。          * @return  返回精灵对象本身。...

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

675. 我想任意的在图片上圈一个不规则闭合的曲线,然后得到曲线内的图片。LayaAir应该怎么实现? [ 51%]

...LayaAir的.graphics.drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1) 获得只能是一个矩形,请问Laya应该如何实现同样的功能? 2017-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

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

...rosoft YaHei"; txt.color = "#ff0000"; txt.leading = 5; txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } } }上面是我的简单测试代码: 图片是2.0版本和1.8版本的字体显示对比。 2.0版本的ggg下面部...

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

677. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 50%]

...宽高 comboBox.autoSize = true; //设置位置 comboBox.pos((Laya.stage.width - comboBox.width) / 2, 150); //自动计算宽高关闭(在设置位置时,需获取列表宽度,获取后关闭) comboBox.autoSize = false; //创建选择提示信息框 createPromptText() } /***创建提示信...

来源: Laya2.0_文档 发布时间: 20210714

678. destination-out 叠加模式问题 [ 49%]

...制一下 guideContainer.scrollRect = new Rectangle(0, 0, Browser.clientWidth, Browser.clientHeight); 2017-12-15 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 li970704928 相关问题 发起问题须知,必看!!!不按提问规...

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

679. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 49%]

...this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleto...

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

680. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 49%]

...      tex.once(Event.READY, this, this.drawImage, [texxywidth, height]);                 }   导致 tex 找不到 getIsReady 方法报错     报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/...

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