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

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

51. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 82%]

...里选择一个 VScrollBar 组件,将VScrollBar 组件的资源地址(skin 属性值)设置为 Tree 组件属性scrollBarSkin 的值。 ​ ![图片0.png](img/11.png) ​ (图) ####5. 调整 Tree 的宽高。 ​ 设置 Tree 对象的属性 var(全局引用名)的值为 m_tree ,此...

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

52. 为什么这个图片还是随机切换不了,新手求帮忙 [ 82%]

...nica - 知识达人 赞同来自: Todo 你好   以下代码是用Image的skin来替换资源var index= Math.floor(Math.random()*num); var img= new Laya.Image(); Laya.stage.addChild(img); img.skin = "res/"+index+".png"; 2017-01-11 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

53. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 82%]

...里选择一个 VScrollBar 组件,将VScrollBar 组件的资源地址(skin 属性值)设置为 Tree 组件属性scrollBarSkin 的值。 ​ ![图片0.png](img/11.png) ​ (图) ####5. 调整 Tree 的宽高。 ​ 设置 Tree 对象的属性 var(全局引用名)的值为 m_tree ,此...

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

54. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 81%]

...里选择一个 VScrollBar 组件,将VScrollBar 组件的资源地址(skin 属性值)设置为 Tree 组件属性scrollBarSkin 的值。 ​ ![图片0.png](img/11.png) ​ (图) ####5. 调整 Tree 的宽高。 ​ 设置 Tree 对象的属性 var(全局引用名)的值为 m_tree ,此...

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

55. Matter和Sprite绑定后图片移位问题 [ 80%]

Matter和Sprite绑定后图片移位问题 代码:    var ball_skin = new Laya.Sprite().loadImage("img/hero.png");         ball_skin.scale(50/120, 80/178);         ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2);         var ball = Matter.Bodies.rectangle(330, ...

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

56. 为啥 增加 Text ,drawcall 暴增 ?????????????? [ 80%]

...???????   fish.scoreItem = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem...

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

57. 请问图片大小可以手动设置宽高吗?怎么设置,看到API里的Sprite的width和height无法设置,只用于碰撞检测 [ 79%]

...与内容相关的链接 提交 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-22 0 0 分享 微博 QZONE 微信 为什么被折...

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

58. 在苹果手机能显示出图片,为什么安卓手机显示不出来 [ 78%]

...机能显示出图片,为什么安卓手机显示不出来 this.img_TopL.skin = "" + this.TopIcon[0]["icon"]; this.img_TopR.skin = "" + this.TopIcon[0]["icon"]; 这两段代码是我从服务器下载的图片地址, 在苹果手机能显示出图片,为什么安卓手机显示不出来 2018-0...

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

59. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 78%]

... public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Text; public skin_btn_use:Laya.Image; private skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(...

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

60. image使用url的方式不显示。 [ 78%]

...使用如下的方式进行image的切换: var img = new Image(url); XXX.skin = img.skin; 主界面能够切换image,结算界面不显示。 还会附带问题:从结算界面返回时,主界面的image切换偶尔无效。 附:url的域名已经包含在了updateLoadFile/downLoadfile中。...

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