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

大约有 188 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0035 秒)

41. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 86%]

...一个背景         var bg = new Image();         bg.skin = "res/img/loadingBg.jpg";         Laya.stage.addChild(bg);             //实例一个文本         this.txt = new Text();         this.txt.text = "适配模式("+this.modes+") "...

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

42. Image属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 86%]

...图像的组件,用来显示位图图像。可以设置 Image 组件的 skin 属性来改变 Image 组件呈现的图像。Image 组件支持九宫格数据设定,用于实现图像放大后图像显示不失真的效果。 ​ 点击资源面板里的 Image 组件,拖放到页面编辑区,...

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

43. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 86%]

..._downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMou...

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

44. 怎样改变图片大小 [ 85%]

...与内容相关的链接 提交 1 个回复 qian 赞同来自: this.bg_img.skin = "ui/bg.jpg"; this.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-30 0 0 分享 微博 QZONE 微信 为什么被折...

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

45. 请问laya有没有类似翻页容器(pageView)的组件? [ 85%]

..._downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya.Handler(this, this.onMou...

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

46. Sprite3D支持的Unity导出列表(TypeScript-3D基础(TS)-LayaAir3D之Unity插件使用) [ 85%]

...ed Lightmap - Lightmap Index - Tiling X - Tiling Y - Offset X - Offset Y - Skinned Mesh Renderer ![Skinned Mesh Renderer](./img/components/Inspector-SkinnedMeshRenderer.png) 1. Mesh 2. Root Bone 3. Bounds - Center - Extent 4. Materials - Size - Element - Animator ![Animator](./img/components/Mecanim...

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

47. clip里设置缓存的key有漏洞 [ 84%]

...otected function loadComplete(url:String, img:Texture):void { if (url === _skin && img) { var w:Number = _clipWidth || Math.ceil(img.sourceWidth / _clipX); var h:Number = _clipHeight || Math.ceil(img.sourceHeight / _clipY); var key:String = _skin + w + h; key这样得到真的ok吗? aaa2 ...

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

48. 怎么获取图片的原始宽高 [ 84%]

...与内容相关的链接 提交 1 个回复 qian 赞同来自: this.bg_img.skin = "ui/bg.jpg"; this.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-24 0 2 分享 微博 QZONE 微信 为什么被折...

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

49. list只能显示一个图片 [ 83%]

...r设为list1, 给List动态赋值 for (i=1;i<10;i++) { var item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; th...

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

50. image.drawToCanvas方法获取的一直是空的png [ 82%]

...vas方法获取的一直是空的png 通过ide创建的image,只赋值了skin,image.drawToCanvas方法获取的一直是空的png 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来...

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