大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...方式支持,之所以没有输出是由于你method的作用域错了,this指向的不是当前类,而是window,使用Handler可以直接传作用域(为当前类),所以Handler输出的结果是对的,建议使用Handler! 2016-12-13 0 2 分享 微博 QZONE 微信 为什么被折叠...
来源: Laya_社区 发布时间: 20161213
...体确定加包围盒了 onStart(): void { var self = this; this.hitResult=new Laya.HitResult(); Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){ // HelperApp.a = ...
来源: Laya_社区 发布时间: 20220506
...ormMap); shader.addSubShader(subShader); subShader.addShaderPass(vs,ps); this.setShaderName("Test1"); } set mainTex(value:BaseTexture) { this._shaderValues.setTexture(this.MAIN_TEX,value); } set noiseTex(value:BaseTexture) { this._shaderValues.setTexture(this.NOISE_TEX,value); } set time(val...
来源: Laya_社区 发布时间: 20190923
... } } var _this:* = this; fileReader.onload = function(evt):void { if(Browser.window.FileReader.DONE==fileReader.readyState) ...
来源: Laya_社区 发布时间: 20170706
...400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyPage2UI); var UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot....
来源: Laya_社区 发布时间: 20160722
...{ //初始化舞台 Laya.init(1334, 750, Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { /...
来源: Laya_社区 发布时间: 20171228
...tion(destroyChild){ (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了...
来源: Laya_社区 发布时间: 20181128
...d: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 L...
来源: Laya2.0_文档 发布时间: 20210714
... 微博 QZONE 微信 Chenyazhi 赞同来自: get angularVelocity() { if (this._btColliderObject) { var phtqua = this._btColliderObject.angularVelocity; this._angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z); } return this._angularVelocity; } get totalForce() { if (this._btColliderObject) { var...
来源: Laya_社区 发布时间: 20200619
... onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200) Laya.stage.ad...
来源: Laya_社区 发布时间: 20180911