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

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

721. 模型与动画的导入使用 · LayaAir3.0文档 · LAYABOX [ 63%]

...("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

722. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 63%]

...Request = new HttpRequest();             req.once(Event.COMPLETE, this, function():void             {                 trace(req.data);             });             req.once(Event.ERROR, this, function():void             {             ...

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

723. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 63%]

...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

724. 2D3D混合项目引擎如何初始化 [ 63%]

...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

725. wx.canvasToTempFilePath在TS下如何使用啊? [ 63%]

...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

726. list点击label保留一种状态 [ 63%]

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

727. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 63%]

... 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

728. 通过绘制纹理生成的图片,改变scale时会出现图片不绘制的情况 [ 63%]

...缩小0.05倍             Laya.stage.on(Laya.Event.MOUSE_DOWN,this,()=>{                 _picScale-=0.05;                 sp.scale(_picScale,_picScale);                 //缩小到0.7倍时,图片就不见了              ...

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

729. laya.ui.View 扩展 [ 63%]

...laya.ui.View,比如:我需要添加 Laya.stage.on(Laya.Event.RESIZE, this, this.windowResize); 调整我的view 的位置 2017-08-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: asd...

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

730. 加载UI页面之后,怎么调用UI页面的图片,给图片加点击事件 [ 63%]

... 的 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