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

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

291. laya.ui.TextArea_API3.0 [ 74%]

...属性 y 的值,用于控制 textArea 对象的显示位置。 textArea.width = 300;//设置 textArea 的宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高...

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

292. 关于要自定shader的同学 [ 74%]

...戏中截屏当前sprite 的绘制 let new_texture = sprite.drawToCanvas(width, height, 0, 0) 这里的 width 和height 指的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0)   重新获取纹理然后将textureHost设置new_texture sprite.shaderVa...

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

293. 骨骼动画-藤蔓 [ 74%]

...re; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, pa...

来源: Laya_示例 发布时间: 20240930

294. 原生js传图片給laya的sprite,怎么设置其等比缩小? [ 74%]

...   $pic.height = 246;     $pic.scaleX = $pic.scaleY;     trace("$pic.width:" + $pic.width); })); 请问:我用原生上传了一张图片,然后传給layaAir,这个图片的scale是未知的,我无法预知图片是竖着拍摄还是横着拍摄的,我在layaAir怎么设置其高度...

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

295. laya.ui.ColorPicker [ 74%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

296. 骨骼动画-橡胶人 [ 74%]

...re; var mCurrSkinIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, t...

来源: Laya_示例 发布时间: 20240930

297. laya.ui.ColorPicker [ 74%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

来源: Laya2.0_api 发布时间: 20190513

298. laya.ui.Radio [ 74%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

299. 鼠标交互-Hold [ 74%]

...pePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(this.ape); // 鼠标交互 this.ape.on(Event.MOUSE_DOWN, this, this.onApePress); } onApe...

来源: Laya2.0_示例 发布时间: 20240930

300. laya.ui.CheckBox [ 74%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

来源: Laya2.0_api 发布时间: 20190513