大约有 573 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(347) Laya3.0_api(60) Laya2.0_文档(52) Laya_示例(41) Laya2.0_示例(40) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
...域, 要清理的定时器监回调方法(looppp)) Laya.timer.loop(100,this,looppp); 清理定时器是支持的哦!你看看你的清理是不是导致了你的代码错误! 2018-05-08 0 2 分享 微博 QZONE 微信 bbh 赞同来自: 模拟器上都没问题,就手机I上报了个错误 ...
来源: Laya_社区 发布时间: 20180505
...了 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
...添加认证令牌支持) 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
.../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
...都没执行 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
...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
...效果,又给我还原回去了!!!!!!!!! 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
...(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
...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
....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