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

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

451. laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 [ 62%]

...域, 要清理的定时器监回调方法(looppp)) Laya.timer.loop(100,this,looppp); 清理定时器是支持的哦!你看看你的清理是不是导致了你的代码错误! 2018-05-08 0 2 分享 微博 QZONE 微信 bbh 赞同来自: 模拟器上都没问题,就手机I上报了个错误 ...

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

452. 位图字体不显示 [ 62%]

...了   2017-08-11 1 4 分享 微博 QZONE 微信 Supermang42 赞同来自: this.mBitmapFont.loadFont( "ziti.fnt", new Laya.Handler( this, onLoaded ) );   上面的 "ziti.fnt" 路徑錯誤,需寫完整路徑。   Example : 假設fnt檔案跟png檔案都放在res資料夾底下,那你就應該...

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

453. [LayaAir3]我直接将整个项目导出,使用Android Studio打开编译,然后构建运行,连接手机结果打开项目就闪退? [ 62%]

...添加认证令牌支持) static _sendRequest(config) { return __async(this, null, function* () { const { endpoint, method, body, queryParams, token } = config; try { let url = `${this.baseUrl}/${endpoint}`; if (queryParams && Object.keys(queryParams).length > 0) { const searchParams = ...

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

454. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 62%]

.../scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript);...

来源: Laya2.0_文档 发布时间: 20210715

455. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 62%]

...都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会...

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

456. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 62%]

...TML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ...

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

457. 2.0中Tween为什么是先执行了complete回调函数,然后在执行tween函数本身。 [ 62%]

...效果,又给我还原回去了!!!!!!!!! Laya.Tween.to(this.owner, {x:0, y:80},5000,Laya.Ease.linearInOut,this.complete)   complete() { XXXXXXXX//重置父节点的方法 this.owner.pos(0, 0 );//重置坐标   } 2019-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

458. BUG:添加RigidBody组件会使anchorX、anchorY失效 [ 62%]

...(body); sp.anchorX = sp.anchorY = 0.5; sp.pos(event.stageX, event.stageY); this.owner.parent.addChild(sp); }p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Hannotate SC'; -webkit-text-stroke: #000000} span.s1 {font-kerning: none}添加RigidBody组件后anchorX与anchorY失效,去掉sp.addComp...

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

459. 游戏系怎么把一些共用的功能独立出来 [ 62%]

...ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模...

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

460. Image.skin = 'https://..../head1.jpg' 报Failed to load:https://..../head1.jpg [ 62%]

....jpg' 报Failed to load:https://..../head1.jpg 具体图片网址如下: this.headImg.skin = "https://nine-guess.oss-cn-beijing.aliyuncs.com/goski/guessImg/head1.jpg";   layaAir运行没有问题,打包成微信小游戏后报错Failed to load:https://nine-guess.oss-cn-beijing.aliyuncs.com/gosk...

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