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

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

111. loadLib("libs/laya.device.js"); native上会随机宕 [ 66%]

...:     //Laya.__init([Media]);   另外视频destr __proto.destroy=function(detroyChildren){         (detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this...

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

112. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 66%]

...dTime:int; private var cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } publi...

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

113. bug:laya.Scene.destroy [ 66%]

...t.length;i < n;i++){//这里缓存了长度,但是在 __proto.destroy=function(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 &l...

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

114. list 加载动画为什么实现的效果会错乱掉? [ 66%]

...载动画为什么实现的效果会错乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒...

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

115. 新手请问下如何开启Laya3D的physics [ 66%]

...ore.js:13707) at MeshSprite3D.__proto.addComponent (laya.core.js:13782) at Function.Utils3D._createNodeByJson (laya.d3.js:9676) unity是5.6.7f1,插件是IDE 2.0.1beta下载页面下的,应该是最新的。从文档看应该是支持导出collider的,但是导出可以,载入报错啊,麻...

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

116. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 64%]

...属性名称     *@return     */     __proto.getTileProperties=function(index,id,name){         if (this._tileProperties[index] && this._tileProperties[index][id]){             return this._tileProperties[index][id][name];         }         ret...

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

117. 2.3.0beta 各种bug [ 64%]

...{     prevTasks = ["替换Laya前缀"] }  const fs = require("fs");  function readFile(path) {     if (fs.existsSync(path)) {         return fs.readFileSync(path, "utf-8");     }     return null; } gulp.task('替换Laya前缀', function(){          var layaMaxUI_Pat...

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

118. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 64%]

...emo一模一样。。。 // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box   = Laya.Box; var Image = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   t...

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

119. list item 添加事件后无法监听 [ 64%]

...回调,这是我的代码,求大神解答     // 初始化ListView function createListView(x, y, width, height, item_width, item_height) {     var list = new Laya.List();     list.itemRender = initItem(item_width, item_height);      list.repeatX = 1;     list.size(width, heigh...

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

120. 对象池 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...的一个对象。 */ static getItemByCreateFun(sign: string, createFun: Function, caller: any = null): any { var pool: any[] = Pool.getPoolBySign(sign); var rst: any = pool.length ? pool.pop() : createFun.call(caller); rst[Pool.POOLSIGN] = false; return rst; } 基于上述的情况,如果对象...

来源: Laya3.0_文档 发布时间: 20251010