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

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

351. 按钮属性disabled mouseEnabled bug [ 81%]

...ed mouseEnabled bug 一开始在页面类构造函数把按钮gray设置为true,mouseEnabled设置为false ,设置一个定时器把按钮gray设置为false,mouseEnabled设置为true  页面上显灰恢复,断点也走到btn.mouseEnabled = true 但是按钮没有接受点击事件,点击...

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

352. 2D物理-碰撞事件与传感器 [ 81%]

....count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.La...

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

353. 阻止点击穿透问题 [ 81%]

... this, function(e) { e.stopPropagation(); if(!Game.runing) { Game.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.items.shaizi]);  弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 9...

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

354. laya.utils.PerfHUD [ 81%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓...

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

355. 微信小游戏加载资源问题 [ 81%]

...i < sz; i++) { if (url.indexOf(MiniAdpter.nativefiles[i]) != -1) return true; } return false; } static getFileInfo(fileUrl) { var fileNativePath = fileUrl; var fileObj = MiniFileMgr.fakeObj[fileNativePath]; if (fileObj == null) return null; else return fileObj; return null; } static read(filePath...

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

356. laya.ui.Panel [ 81%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Nu...

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

357. laya.display.Animation [ 81%]

...: Boolean[write-only] 是否自动播放,默认为false。如果设置为true,则动画被创建并添加到舞台后自动播放。 Animation autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变...

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

358. laya.ui.ViewStack [ 81%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Nu...

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

359. 程序蓝图 · LayaAir3.0文档 · LAYABOX [ 81%]

...: const { bpClass } = BP; @bpClass({ name:"TestBluePrint", canInherited: true, extends:"Script" }) export class TestBluePrint extends Laya.Script { } 需要注意的是,只有注册了构造函数,才可以在蓝图编辑器的createNew中创建这个类的实例,如图12-1所示。 const { ...

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

360. discard property,please use transform's property instead [ 81%]

...Adpter.init();         //初始化引擎         Laya3D.init(0, 0, true);         //适配模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         //开启统计信息         Laya.Stat.show();       ...

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