大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...v/' + env + '/envinfo.json'; Laya.loader.load(envinfo, Laya.Handler.create(this, onEnvDescLoaded, [envinfo, '../../res/threeDimen/env/' + env + '/'])); function onEnvDescLoaded(envinfo, envpath) { var envinfoobj = Laya.loader.getRes(envinfo); var camera = new Laya.Camera(0, 0.1, 1000); if (envinfoob...
来源: Laya_示例 发布时间: 20251219
...d([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他child...
来源: Laya_社区 发布时间: 20170829
...le.log(123120, ape) // Laya.loader.load('res/mao.jpg', Laya.Handler.create(this, function (){ // var t = Laya.loader.getRes('res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage.addChild(a) //...
来源: Laya_社区 发布时间: 20180104
...说明 1、在laya.d3.js中找到Camera.render函数 2、render函数中,this._prepareCameraToRender();这一行后面添加如下代码 if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光...
来源: Laya_社区 发布时间: 20200110
...ect.drawsomething(20, 20+60*i, "#eeb9b3"); sp.on(Event.CLICK,this, onsp); Laya.stage.addChild(sp); } private function onsp(e:Event){ console.log("监听到按钮"+e.target); console.log((e.target.getChildAt(0) as Sprite).name...
来源: Laya_社区 发布时间: 20170330
... (force===void 0)&& (force=false); if (!this._destroyed){ this._destroyed=true; var bit=this._bitmap; if (bit){ bit._removeReference(this._referenceCount); ...
来源: Laya_社区 发布时间: 20190704
...,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(1000, this, this.shootBall); } public sho...
来源: Laya_社区 发布时间: 20190506
...建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="35,35,80,80"; //****新增代码*****,需增加private _chain; } /**开始游戏...
来源: Laya_社区 发布时间: 20181130
...限嵌套。 修复如下 get angularVelocity() { if (this._btColliderObject) { var phtqua = this._btColliderObject.angularVelocity; - this.angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z); + this._angularVelocity.setValue...
来源: Laya_社区 发布时间: 20210908
...new laya.net.HttpRequest(); logReq.once(Laya.Event.COMPLETE,this,this.onComplete); logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'", 'post', "json", null); 服务端无法获取数据 2017-09-06 4 条评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170906