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

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

1421. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 48%]

...,但是比起WEB 还是慢了7倍以上。     var loadList: Array<string> = [];//70张图片         for (let i = 1; i < 70; i++) {                         loadList.push("resources/test/a ("+i+").png");         }          let nt = Date.now();         Laya.l...

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

1422. laya.maths.Matrix [ 48%]

...umber, y:Number):Matrix 对 Matrix 对象应用倾斜转换。 Matrix  toString():String 返回列出该 Matrix 对象属性的文本值。 Matrix  transformPoint(out:Point):Point 将 Matrix 对象表示的几何转换应用于指定点。 Matrix  transformPointN(out:Point):Point 将 Matrix ...

来源: Laya2.0_api 发布时间: 20190513

1423. layaAir分包问题 [ 48%]

...ine • 2017-03-17 12:43 @chunjine:private function getModuleJs(moduleName:String):* { var codeConfig:* = GameConfig.loadConfig.moduleCode[moduleName]; var moduleJs:*; if (codeConfig) { moduleJs = Laya.loader.getRes(codeConfig.url); } return moduleJs; } chunjine • 2017-03-17 15:45 @chunjine:不对...

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

1424. 多个button如何区分 [ 48%]

...注: 3 人 cyqcyqcyq • 2017-04-25 20:26 override public function on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher 在调用函数后面添加区分button的参数应该可以吧 189*****192 • 2017-04-26 09:33 @cyqcyqcyq:我也有另一种解决方式 for(var i:int=...

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

1425. laya.physics.CircleCollider_API3.0 [ 48%]

...ed in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/physics/ColliderBase.ts:18 标签 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 rigidBody rigidB...

来源: Laya3.0_api 发布时间: 20231115

1426. Laya3D场景加载问题 [ 48%]

...lass TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }...

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

1427. 自定义shader-边缘光照shader [ 48%]

... customShader: number = Laya.Shader3D.nameKey.add("CustomShader"); var vs: string = "attribute vec4 a_Position;\n" + "attribute vec2 a_Texcoord;\n" + "attribute vec3 a_Normal;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "varying vec2 v_Texcoord;\n" + "varying vec3 v_Normal;\n...

来源: Laya_示例 发布时间: 20260303

1428. laya.particle.ParticleSetting_API3.0 [ 48%]

...ticle/ParticleSetting.ts:96 发射器发射速率 emitterType emitterType: string = "null" Defined in laya/particle/ParticleSetting.ts:94 发射器类型,"point","box","sphere","ring" emitterVelocitySensitivity emitterVelocitySensitivity: number = 1 Defined in laya/particle/ParticleSetting.ts:17 粒...

来源: Laya3.0_api 发布时间: 20231115

1429. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 48%]

...og("msg2");    } }   然后再main.ts里面. function dispatchMsg(name: string){   let fun = proto[name];   fun(); }     dispatchMsg("msg1"); 这样就能反射到对应的函数并且调用了,  到了2.x就不行了, 希望能帮忙解答一下.怎么把上面的代码转到2.x下使用? ...

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

1430. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug [ 48%]

...并不能真正释放资源的bug demo: class NewTest { public static url: string = "333.json"; private loadedMap; constructor() { this.loadedMap = Laya.Loader["loadedMap"];  Laya.init(720, 1280, Laya.WebGL); Laya.Stat.show(0,0); Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stag...

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