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

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

2601. android下layabox调用Laya.Texture2D.load报错 [ 40%]

...ev-loca ... 913:61) 02-06 14:59:43.858  6545  6658 I LayaBox :     at EventHandler.__proto.runWith (http://10.0.1.72/game/dev-loca ... 711:59) 02-06 14:59:43.858  6545  6658 I LayaBox :     at ResInfo.__proto.event (http://10.0.1.72/game/dev-loca ... 483:28) 02-06 14:59:43.858  6545  665...

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

2602. Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 [ 40%]

...集打包找不到图集文件 ui list 里面的元素不能点击两次 event自定义事件的问题 [分享]Dialog 点击边缘不关闭的 Demo示例 问题状态 最新活动: 2019-02-22 16:52 浏览: 8499 关注: 10 人 想想你 • 2018-12-08 21:01 https://www.tslang.cn/docs/han ... .html 13...

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

2603. 加载的时候动画会卡 [ 39%]

... Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.dh = function(){         this.ani1.play(0,true);         Tw...

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

2604. Shader预编译(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 39%]

...官方边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ var arr:Array; for(var i:int = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["...

来源: Laya2.0_文档 发布时间: 20210715

2605. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 39%]

...t - 100 * Laya.Browser.pixelRatio);         changeActionButton.on(Laya.Event.CLICK, this, function () {             if (++curStateIndex % 2 == 1) {                 debugModel = true;                 changeActionButton.label = "网格模式";             }         ...

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

2606. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 39%]

...ircle(0, 0, 20, "#990000"); Laya.stage.addChild(sp);    Laya.stage.on(Event.MOUSE_MOVE, this, function() {     sp.pos(Laya.stage.mouseX, Laya.stage.mouseY); }); ``` ​ ![图片1.png](img/1.png) ​ (图1) ​ 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置...

来源: Laya2.0_文档 发布时间: 20210715

2607. 报无法找到资源,未升级ide之前不报错 [ 39%]

...ot;./Scenes/Index.ls"); }); // 侦听加载失败 Laya.loader.on(Laya.Event.ERROR, this, this.onError); }); } 逸辰 • 2023-07-19 22:53 从启动页进来的,也加载了呀 layabox • 2023-07-26 20:47 @逸辰:请提交可重现Demo,

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

2608. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 39%]

...phics.drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) ...

来源: Laya2.0_文档 发布时间: 20210715

2609. unity中的模型导出后在laya中显示不正常 [ 38%]

... Laya.stage.addChild(Laya.Scene.load("res/layaScene.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function (sceneTemp) { var camera = sceneTemp.getChildByName("Main Camera"); camera.transform.translate(new Laya.Vector3(0, 0, 200)); //移动camera });2.问题2:加载完看官方的demo要加...

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

2610. 区块地图-等角地图 [ 38%]

...WALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/isometric_grass_and_...

来源: Laya2.0_示例 发布时间: 20251223