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

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

461. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 69%]

...a.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this,...

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

462. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 69%]

...    let partIns = new Laya.Particle2D(settings);         Laya.stage.addChild(partIns);         // 开始发射粒子         partIns.emitter.start();         // 播放         partIns.play();          partIns.x = Laya.stage.width / 2;       ...

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

463. 在Laya.stage上面添加两个重叠的View,希望上层的View把下层View的点击给屏蔽掉,不让点击到下层View的按钮什么的,应该怎么设置 [ 69%]

在Laya.stage上面添加两个重叠的View,希望上层的View把下层View的点击给屏蔽掉,不让点击到下层View的按钮什么的,应该怎么设置 我设置了View的mouseThrough没效果 2018-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

464. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

... this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo)...

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

465. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 69%]

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

466. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 69%]

... this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private  onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInf...

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

467. laya.ui.VSlider [ 69%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

468. laya.particle.Particle2D [ 69%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

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

469. laya.ui.View [ 69%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

470. 加上size设置后,精灵不能点击. [ 69%]

...(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img) } function createFlower() { var f = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" f.loadImage(s); f.on(Laya.Event.C...

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