大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
Laya_社区(859) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun) { //播...
来源: Laya3.0_文档 发布时间: 20230303
...Request = new HttpRequest(); req.once(Event.COMPLETE, this, function():void { trace(req.data); }); req.once(Event.ERROR, this, function():void { ...
来源: Laya_社区 发布时间: 20170120
...s Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); testPan.on(Event.CLICK,this,on...
来源: Laya_社区 发布时间: 20161124
...REEN_NONE; Laya.loader.create("LayaScene_Laya/Laya.ls",Laya.Handler.create(this,this.on3DComplete)); 报错 throw new Error("LoaderManager:unknown file("+url+") extension with: "+extension+"."); 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180116
...ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type 'typeof wx' is not assignable to method's 'this' of type 'string'. canvasId也是我乱写的 如果才能正确获取小游戏当前画布的canvasId啊? 2018-11-28 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181128
list点击label保留一种状态 var record_slide_list = this.record_slide_list; data = []; for(var i = 0;i < 10;i++){ data.push({ bgColor:{color:'#f3d9b4'}, type:false }) } record_slide_list.array = data; record_slide_list.selectEnable=true; record_slide_list.selectHandler = new Handler(this, ...
来源: Laya_社区 发布时间: 20170803
... bg = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path); this.addChild(bg); bg.x = 0; bg.y = 0; var bg2:Sprite = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path); bg2.x = 0; ...
来源: Laya_社区 发布时间: 20161223
...缩小0.05倍 Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{ _picScale-=0.05; sp.scale(_picScale,_picScale); //缩小到0.7倍时,图片就不见了 ...
来源: Laya_社区 发布时间: 20200422
...laya.ui.View,比如:我需要添加 Laya.stage.on(Laya.Event.RESIZE, this, this.windowResize); 调整我的view 的位置 2017-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: asd...
来源: Laya_社区 发布时间: 20170805
... 的 var 属性设置一个 名字 比如 img img.on(Event.MOUSE_DOWN, this, 回调方法); 2018-01-11 1 5 分享 微博 QZONE 微信 qian 赞同来自: 你可以参考这个示例https://ldc.layabox.com/doc/?nav=zh-as-4-1-0 2018-01-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180111