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

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

591. laya.ui.List [ 73%]

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

来源: laya_api 发布时间: 20170929

592. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 73%]

...prite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.name = "maskArea"; this.guideContainer.addChild(maskArea); this.interactionArea = new Laya.Sprite(); this.interactionArea.blendMode = "destination-out"; this.guideContainer.addCh...

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

593. 为什么Laya.Panel的子节点在(0,0)位置会不显示呢? [ 73%]

...QZONE 微信 Devilsparta 赞同来自: var panel = new Laya.Panel(); panel.width = 800; panel.y = 30; panel.hScrollBarSkin = null; var sp = new Laya.Sprite(); panel.addChild(sp); sp.x = 0; sp.y = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200...

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

594. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 73%]

...itDOMElementInArea(this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height) 第二: 加Event.RESIZE Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height]) 第三: ...

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

595. 动态设置stage的大小问题 [ 73%]

...览: 1573 关注: 3 人 182*****369 • 2017-07-27 14:36 画布在init后,width height就不能改变了对吗?测试再次init无效呀 cuixueying • 2017-07-27 15:41 把width和height用两个变量代替,动态修改变量的值即可!

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

596. 官方案例里摄像机绕物体旋转脚本的问题 [ 73%]

.... /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width: number; /// <summary> /// Length of area. /// </summary> public length: number; /// <summary> /// Constructor. /// </summary> /// <param name="cente...

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

597. 2.0 的list问题 [ 73%]

...模式,2.0这里有个bug,就是用了分离模式的话这个view的width和height都为0,虽然大部分情况下不影响显示,但是如果需要用到这两个属性计算的话就会出错,比如list。把分离模式改成内嵌模式,或者简单粗暴的在构造函数里面对w...

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

598. Laya.Image怎么获取图片的真实大小 [ 73%]

...r.getRes('../laya/assets/comp/bg.jpg');       console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-30 1 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: width height 不行吗? 2018-07-30 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前...

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

599. 缓动-逐字缓动 [ 72%]

... Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() {...

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

600. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 72%]

...n: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton);  //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createBut...

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