大约有 1,698 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0054 秒)
...LayaAir 2.0 模糊滤镜与发光滤镜找不到 我再代码里面打印: console.log(Laya.GlowFilter); console.log(Laya.ColorFilter); console.log(Laya.BlurFilter); 只有ColorFilter能找到,其它都是undefine 2019-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190304
... : boolean ; onMouseDown(e : laya.events.Event):void{ console.log("MOUSE_DOWN"); this.on(laya.events.Event.MOUSE_MOVE ,this, this.onMouseMove); this.onMouseDownX = e.target.mouseX; this.onMouseDownY = e.target.mouseY; } onM...
来源: Laya_社区 发布时间: 20160823
...r(app); var io = require('socket.io').listen(server); server.listen(8888); console.log("服务器启动"); io.on('connection', function (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> &l...
来源: Laya_社区 发布时间: 20181107
...mHei", "#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound("res/sounds/btn.mp3", 1, new Laya.Handler(this, this.onComplete)); } // 播放音乐 onPlayMusic() { console.log("播放音乐"); Laya.SoundManager.playMusic("res/sound...
来源: Laya2.0_示例 发布时间: 20241118
...moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.img1 ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; console.log("33333"); } if (this.ball.x + this.v...
来源: Laya_社区 发布时间: 20171108
...); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } function onPlaySound(e) { console.log("播放音效"); SoundManager.playSound("../../res/sounds/btn.mp3", 1,...
来源: Laya_示例 发布时间: 20241118
...getUserInfo({ withCredentials:false, lang: 'zh_CN', success: (res) => { console.log(res); // BigData.ins.user = res.data[0]; }, fail: () => { console.log("userInfo"+JSON.stringify("fail")); }, complete: () => { // console.log("userInfo"+JSON.stringify(selfData)); } Res打印出来时空的 ...
来源: Laya_社区 发布时间: 20190917
... 代码: var configData:XmlDom = Loader.getRes(config_PATH) as XmlDom; console.log(configData); console.log(configData.attributes); console.log(configData.childNodes); xml如下: <root> <config> <PATH>../h5/</PAHT> </config> </r...
来源: Laya_社区 发布时间: 20170531
...tageHeight = Laya.Browser.clientHeight; if (stageWidth < stageHeight) { console.log("one", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; //1 console.log("one1", Laya.stage.scaleMode) } else { console.log("two", Laya.stage.scaleMode) Laya.stage.scaleMode = Laya.Stage.SCALE...
来源: Laya_社区 发布时间: 20170920
...is.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); } public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D();...
来源: Laya_社区 发布时间: 20181020