大约有 3,603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0090 秒)
Laya_社区(2675) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) laya_api(98) Laya3.0_文档(97) Laya_示例(83) Laya2.0_示例(45)
... stage 以外的鼠标事件检测。MouseManager enabled : Boolean = true[static] 是否开启鼠标检测,默认为trueMouseManager _event : EventMouseManager mouseDownTime : Number = 0 鼠标按下的时间。单位为毫秒。MouseManager mouseMoveAccuracy : Number = 2 鼠标移动...
来源: Laya2.0_api 发布时间: 20190513
...建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fontSize = 30;//设置 textInput 的字体大小。 textInput.x = 0;//设置 textInput 对象的属性 x 的值,用于控制 textInput 对象的显示位置。 textI...
来源: Laya2.0_文档 发布时间: 20210715
...ed mouseEnabled bug 一开始在页面类构造函数把按钮gray设置为true,mouseEnabled设置为false ,设置一个定时器把按钮gray设置为false,mouseEnabled设置为true 页面上显灰恢复,断点也走到btn.mouseEnabled = true 但是按钮没有接受点击事件,点击...
来源: Laya_社区 发布时间: 20171019
....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_示例 发布时间: 20251209
...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓...
来源: Laya2.0_api 发布时间: 20190513
... 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
...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
...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Nu...
来源: Laya2.0_api 发布时间: 20190513
...: Boolean[write-only] 是否自动播放,默认为false。如果设置为true,则动画被创建并添加到舞台后自动播放。 Animation autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变...
来源: Laya2.0_api 发布时间: 20190513
...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Nu...
来源: Laya2.0_api 发布时间: 20190513