大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...想在回调里暂停,然后在开启 var i = 0; Laya.timer.loop( 500, this, function () { i = i < (arr.length - 1) * 6 ? i + 1 : 0; this.noticeList.scrollBar.value = i * 5 if (i % 6 == 0) { console.log("在这里停止", i) } el...
来源: Laya_社区 发布时间: 20170705
...取的不是具体骨个么?用了后没有生效 var bone:Laya.Bone = this.mTemplete.mRootBone.findBone("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =an...
来源: Laya_社区 发布时间: 20180607
...Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,onImageLoa...
来源: Laya_社区 发布时间: 20151228
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text; let txt = new Text(); Laya.stage.addChild(txt); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发...
来源: Laya2.0_示例 发布时间: 20251219
...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方 *...
来源: Laya2.0_文档 发布时间: 20210715
...ture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){ this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 破...
来源: Laya_社区 发布时间: 20190508
...SoundChannel的示例? SoundManager.playSound(_url, _loop, new Handler(this, _fn)); var channel:SoundChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isSt...
来源: Laya_社区 发布时间: 20170116
... ↓按钮回调 绘制子域到工程 bt_rank_call_back(body){ this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; v...
来源: Laya_社区 发布时间: 20181217
...() { Laya3D.init(600,400); } return LayaSample1; }()); 警告Warning!,this class[MiniAdpter] already exist: Object {init: } 运行后什么都没有白白的一片 var LayaSample=(function() { Laya3D.init(600,400); }()); 正常看到黑屏 附件 : --> 2018-05-21 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20180521
...height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } } 输出为: 不明白touches...
来源: Laya_社区 发布时间: 20170519