大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)
Laya_社区(859) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(29) laya_api(2) Laya2.0_api(2)
....Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); this.text.color="#CCCCCC"; this.text.x=Math.random()*550; this.text.y=Math.random()*400; textBox.addChild(this.text); } Laya.stage.addChild(textBox); }...
来源: Laya3.0_文档 发布时间: 20231008
...mage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 ...
来源: Laya_社区 发布时间: 20160905
...null Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){ dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3") })) let mainSound:Laya.SoundChannel = null; this.btn_sound.on(Laya.Event.C...
来源: Laya_社区 发布时间: 20190716
...a1.addComponent(CameraMoveScript); } private function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/b...
来源: Laya_社区 发布时间: 20170209
使用Tween.to完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void { this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景...
来源: Laya_社区 发布时间: 20170426
....Stage.ALIGN_MIDDLE; Laya.loader.load("res/img/m1.jpg",Laya.Handler.create(this,load)); function load(){ let ctn2=new Laya.Sprite(); Laya.stage.addChild(ctn2); var gq=new Laya.Sprite(); gq.loadImage("res/img/m1.jpg",100,100,100,100); ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,Is); } func...
来源: Laya_社区 发布时间: 20180806
...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of u...
来源: Laya_社区 发布时间: 20180117
...的,我反馈一下 mrtian • 2018-10-09 18:40 谢谢回复,不过“this.roleAni.on(Laya.Event.COMPLETE,this,this.onCompleteAni);”这个代码不应该是监听动画播放完成的吗 mrtian • 2018-10-09 18:55 工程代码我更新了,mp3音频文件加载失败的问题,不知道是...
来源: Laya_社区 发布时间: 20181009
...prite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null, checkHit); var hit = new Laya.RaycastHit(); var point = new Laya.Vector2(); ...
来源: Laya_社区 发布时间: 20170915
...g 昨晚脑子短路了。睡觉时才想到这样弄。var _NetData = new this.UserModel(); var _NetMessageHead=new this.HeadModel(); _NetMessageHead.set('bMainID', head[0]); _NetMessageHead.set('bAssistantID', head[1]); ...
来源: Laya_社区 发布时间: 20161223