大约有 2,033 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
... (atlas===void 0)&& (atlas=false); this['_url']=url=Laya.URL.formatURL(url); if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json"; this.stop(); //this['_clear'](); ...
来源: Laya_社区 发布时间: 20180615
...体确定加包围盒了 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
...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
...{ //初始化舞台 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
...onLoaded=function(data){ 在 var bFont=new BitmapFont(); bFont.parseFont(this._data,data);之前加入 this._data = Utils.parseXMLFromString(this._data);就ok了 2018-05-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zh920627 相关...
来源: Laya_社区 发布时间: 20180306
... 微博 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