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

大约有 290 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0040 秒)

131. ToolTip鼠标悬停的使用 [ 69%]

...e.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可直接在全局变量处实例化 //切记,无论何种鼠标提示方式,...

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

132. wx.canvasToTempFilePath在TS下如何使用啊? [ 69%]

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

133. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 69%]

....stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628";   this.loadFont(); }   loadFont() { const  BitmapFont = Laya.BitmapFont, Handler = Laya.Handler;   Laya.loader.load([{     url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => { ...

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

134. 微信小游戏下Laya.Browser.window.protobuf可以用吗? [ 69%]

....protobuf可以用吗? let protoBuf =  Laya.Browser.window.protobuf; this.proto = await  protoBuf.load("res/protobuf/game.proto");   var HeartBeatReq = this.proto.lookup("HeartBeatReq");         var body = HeartBeatReq.create({             "time":1         }); ...

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

135. 微信小游戏,子域问题。 [ 69%]

...小游戏,子域问题。 __static(MiniFileMgr, ['fs',function(){return this.fs=wx.getFileSystemManager();},'wxdown',function(){return this.wxdown=wx.downloadFile;} ]);   报错说没有这个方法:wx.getFileSystemManager() 附件 : --> 2018-07-25 1 条评论 免费帖 --> 分享 微博 QZONE ...

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

136. 3D加载不了 [ 68%]

...ial;       Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete));       function onCreateComplete() {    var mesh = Laya.loader.getRes("cj\cj-default001.lm");   var meshSprite3D = new Laya.MeshSprite3D(mesh);   this.scene.addChild(meshSprite3D); } //mode...

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

137. [LayaAir3]微信小游戏 高性能+模式文字显示不全 [ 68%]

...用getImageData了         //TextRender.isWan1Wan = true;         this.charRender = new CharRender_Canvas(2048, 2048, TextRender.scaleFontWithCtx, !TextRender.isWan1Wan, false);         TextRender.textRenderInst = this;         ILaya.Laya['textRender'] = this;   必须修改bugIOS ...

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

138. 附加脚本的使用问题 [ 68%]

... _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner(): laya.display.Sprite {         return this._owner;     } } 新建脚本类如上。运行项目时,构造方法中的log被输...

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

139. 2.3微信截图分享问题 [ 68%]

2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0);   this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。   现在有个问题。如果用微信分享怎么搞?微信那边需要...

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

140. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 68%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

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