大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0042 秒)
Laya_社区(371) Laya2.0_文档(52) Laya_示例(34) Laya2.0_示例(30) Laya3.0_文档(22) Laya3.0_api(1) Laya2.0_api(1)
... { trace("addEgg"); for(var i:int = 0; i<eggLoc.length; i++) { //trace(eggLoc[i][1]+" "+eggLoc[i][0]); var yy0 = eggLoc[i][1]/2; ...
来源: Laya_社区 发布时间: 20170517
...ist on type 'typeof Laya' Spine 格式转换, Error: Invalid timeline type for a slot:twoColor XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. 读URL parameter textinput(type=password)手机打开华为安全键盘后,无法关闭(官网...
来源: Laya_社区 发布时间: 20190422
...of Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p] } ; return function(d, b) { extendStatics(d, b); function __() { this.constructor = d } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __) ...
来源: Laya_社区 发布时间: 20171212
...s._url.substr(0,idx+1):""; for (var i=0,len=toloadPics.length;i < len;i++){ toloadPics[i]=folderPath+toloadPics[i]; } ...
来源: Laya_社区 发布时间: 20190202
....list能否存放Sprite? 下面是官网list的例子 : var data = []; for (var i = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../re...
来源: Laya_社区 发布时间: 20180603
... let parent:Laya.Sprite = child.parent;//父 let len = parent.numChildren; for(var i = 0; i < len; i++){ let value = parent.getChildAt(i); if(value != child) { //兄弟 } else{ //自己 } } 2018-09-01 0 1 分享 微博 QZONE 微信 谢春 赞同来自: 可能你所说的是点击事件穿透问...
来源: Laya_社区 发布时间: 20180901
...自: 正确的写法: override protected function _onEnable():void { for (var i = 0, n = this._controllerLayers.length; i < n; i++) { if (this._controllerLayers[i].playOnWake) { var controllerLayer = this._controllerLayers[i]; var curPlayState = controllerLayer._currentPlayState; if (curPlay...
来源: Laya_社区 发布时间: 20190513
... // 这个循环的目的,是保证下面Image的图不会立即加载 for (int i = 0; i < 10; ++i) { var url:String = "res/xxx" + i + ".png"; Laya.loader.load(url); } // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html ...
来源: Laya_社区 发布时间: 20181219
...er.create(this, onAssetsLoaded)); private function onAssetsLoaded():void { for(var i:int = 0, len:int = assets.length; i < len; ++i) { var asset:Image = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(ass...
来源: Laya_社区 发布时间: 20171019
...adowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index++) { var a = 0.05; var b = 0.2; var c = 0.03; var pos = new Laya.Vector3(0,0.08,0.05);// new Laya.Vector3(0,0,0.05); if(index == 0){ a = 0.0001; b = 0.4 c = 0.2; pos = new Laya.Vector3(...
来源: Laya_社区 发布时间: 20191223