大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
...: //Laya.__init([Media]); 另外视频destr __proto.destroy=function(detroyChildren){ (detroyChildren===void 0)&& (detroyChildren=true); _super.prototype.destroy.call(this,detroyChildren); // native会崩溃 // this...
来源: Laya_社区 发布时间: 20181207
...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
...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
...载动画为什么实现的效果会错乱掉? 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
...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
...属性名称 *@return */ __proto.getTileProperties=function(index,id,name){ if (this._tileProperties[index] && this._tileProperties[index][id]){ return this._tileProperties[index][id][name]; } ret...
来源: Laya_社区 发布时间: 20190218
...{ 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
...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
...回调,这是我的代码,求大神解答 // 初始化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
...的一个对象。 */ 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