大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathInde...
来源: Laya2.0_文档 发布时间: 20210714
... new Laya.Templet(); tm.loadAni("res/imgs.sk"); tm.on(Laya.Event.COMPLETE, this,()=>{ //是不是只能在这里面创建动画,这里创建,那我如何全局使用???????? var skp = this.buildArmature(1); skp.showSkinByIndex(1); }) 我想在外...
来源: Laya_社区 发布时间: 20170821
...解答,多谢 // wxMgr.getOpenDataCanvas() //开放数据域canvas // this.view.image_rank_list //要绘制的图片 // var rankTexture = new Laya.Texture(wxMgr.getOpenDataCanvas()); // rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 // console.log(rankTextur...
来源: Laya_社区 发布时间: 20180426
...加载.lm文件和.ani文件,有沒有實例可以看下 代碼如下: this.scene = Laya.stage.addChild(new Laya.Scene()); //加载相机 this.camera = this.scene.addChild(new Laya.Camera()); this.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load(...
来源: Laya_社区 发布时间: 20180731
...pc端正常,代码如下 private playSoundLead() { if (!this.soundMan || this.playBoo) { this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1)); this._btnTimeOutPlay.visible = true; ...
来源: Laya_社区 发布时间: 20190919
...发光滤镜,并没有一直new SpineMgr.inst.loadSpine(['spine/yasuo'], this, ()=>{ this._spine = SpineMgr.inst.createSpine('spine/yasuo.sk', 0); // this._spine.showSkinByIndex(1); this._spine.play('yidonggongji', true); this.testSkePos.addChild(this._spine); //创建一个发光滤镜 var fil...
来源: Laya_社区 发布时间: 20181127
....protobuf可以用吗? let protoBuf = Laya.Browser.window.protobuf; this.proto = await protoBuf.load("res/protobuf/game.proto"); var HeartBeatReq = this.proto.lookup("HeartBeatReq"); var body = HeartBeatReq.create({ "time":1 }); ...
来源: Laya_社区 发布时间: 20191114
...ya.Box(); a.left = a.top = a.right = a.bottom = 0; a.on(Laya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE ...
来源: Laya_社区 发布时间: 20181214
...s/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i < skins.length; ++i) { var input = createInput(skins[i]); ...
来源: Laya_社区 发布时间: 20190814
...op事件 private onKeyDown():void { Laya.KeyBoardManager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) &...
来源: Laya2.0_文档 发布时间: 20210714