• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,033 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)

621. 版本管理swf找同名的Json文件发现找不到 [ 81%]

...    (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

622. 发射射线检测不到,物体有包围盒 [ 81%]

...体确定加包围盒了      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

623. 分享水波一个shader [ 81%]

...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

624. ts怎么调用input file弹框选择本地文件 [ 81%]

...         }             }              var _this:* = this;              fileReader.onload = function(evt):void              {                  if(Browser.window.FileReader.DONE==fileReader.readyState)               ...

来源: Laya_社区 发布时间: 20170706

625. 自己创建的box作为tab,为啥没有点击事件啊? [ 81%]

...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

626. bug:laya.Scene.destroy [ 81%]

...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

627. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 81%]

...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

628. animate 动画播放 怎么把攻击 开火 合起来播放 [ 81%]

...{ //初始化舞台 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

629. 微信小游戏IDE加载位图字体,提示错误 [ 81%]

...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

630. Laya2.7.0 beta cannon bug [ 81%]

... 微博 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