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

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

561. worker.js 使用问题 [ 67%]

...bGL){             /*__JS__ */bitmap=HTMLImage.create(imageData.width,imageData.height,1);             /*__JS__ */bitmap.loadImageSource(imageData);             /*__JS__ */bitmap._setCreateURL(data.url);         } else {             bitmap = new...

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

562. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 67%]

...口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLay...

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

563. TiledMap地图添加至Panel中不显示! [ 67%]

...致的,你给地图设置个宽高就行了 给this.tiledMap.mapSprite().width 和 this.tiledMap.mapSprite().height设置个值   2017-10-12 0 1 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 麻烦上传一个有问题的例子我们看下,谢谢! 2017-10-10 0 1 分享 微...

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

564. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 67%]

... var _lab = new Laya.Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.showMsgFunc = function () { this.text = "ShowMsg"; this.color = "red"; }.bind(_lab); })); ``` 最...

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

565. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 67%]

...,可以设定为`White text with alpha`,即白色字透明底。 | | Width | 导出的位图宽度 | | Height | 导出的位图高度 | | Font descriptor | 字体描述文件,必须要选择 xml | | Textures | 纹理图片格式,必须要选择 png | #### 第六步:导出位图字体 完...

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

566. 2.6.0在微信小游戏TTFLoader加载ttf字体失败 [ 67%]

...达成 if (ILaya.Browser.measureText(TTFLoader._testString, this._fontTxt).width != this._txtWidth) { this._complete(); } } 请问该怎么处理ttf字体文件? 附件 : --> 2020-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

567. 更新到1.7.6beta之后,HBox有bug [ 67%]

...laya.display.Sprite(); var img: laya.ui.Image = new laya.ui.Image(skin); s.width = img.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); } 2017-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, ...

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

568. 3D文本纹理demo问题 [ 67%]

...lText is not a function             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                    TypeError: this.cxt.fillText is not a function     at TextureManager.getWebCharBmp...

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

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

...rcle(75, 75, 75, "#ffffff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 c...

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

570. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...三个选项。none:无自适应模式,both:宽高自适应模式,width:宽度自适应模式。 space属性就是设置子对象之间的水平间隔,以像素为单位,可以自行输入数字,也可以通过鼠标左键长按滑动来输入数值。假设HBox有三个Button组件...

来源: Laya3.0_文档 发布时间: 20251010