大约有 3,974 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(48)
...D : String = Translate[static] TranslateCmdProperty Detailtxpropertypublic var tx:Number 添加到水平坐标(x)上的值。 typroperty public var ty:Number 添加到垂直坐标(y)上的值。 Method Detailrecover()method public function recover():void 回收到对象池 Constant DetailID...
来源: Laya2.0_api 发布时间: 20190513
..., this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser....
来源: Laya_社区 发布时间: 20180525
...urn new Date(instance.getTime()) as any } if (instance instanceof Array) { var cloneArr = [] as any[] ;(instance as any[]).forEach((value) => { cloneArr.push(value) }) return cloneArr.map((value: any) => GameUtils.deepCopy<any>(value)) as any } if (instance instanceof Object) { var copyI...
来源: Laya_社区 发布时间: 20230625
...从图上看到的信息不全面 li970704928 • 2017-12-13 19:03 private var maskArea:Sprite; private var sp:Sprite; private var guideContainer:Sprite; public function openPoison():void { mapData = mapSession.mapData; guideContainer=new Sprite(); guideContainer.cacheAs = "bitmap"; this.a...
来源: Laya_社区 发布时间: 20171213
...继承式页面类,可以直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能...
来源: Laya_社区 发布时间: 20190426
...了,麻烦老师看下是什么问题,谢谢! private initCode() { var div: any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, th...
来源: Laya_社区 发布时间: 20180412
...aceWidth(10);Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont);var txt = new Laya.Text();txt.text = "这是测试";//设置宽度,高度自动匹配txt.width = 250;//自动换行txt.wordWrap = true;txt.align = "center";//使用我们注册的字体txt.font = this.mFontName;txt.fontSize...
来源: Laya_社区 发布时间: 20180919
..._tMusic) { if (_musicMuted) return null; } else { if (Render.isConchApp) { var ext:String = Utils.getFileExtension(url); if (ext != "wav" && ext != "ogg") { alert("The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website document."); retur...
来源: Laya_社区 发布时间: 20190115
...et.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.lo...
来源: Laya_社区 发布时间: 20161026
...性就行。 > 使用盒型网格 ```typescript //初始化天空渲染器 var skyRenderer = scene.skyRenderer; //创建天空mesh skyRenderer.mesh = Laya.SkyBox.instance; ``` > 使用球形网格 ```typescript //初始化天空渲染器 var skyRenderer = scene.skyRenderer; //创建天空mesh skyRen...
来源: Laya2.0_文档 发布时间: 20210715