大约有 563 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0052 秒)
Laya_社区(277) Laya2.0_api(76) Laya2.0_文档(69) laya_api(65) Laya3.0_api(61) Laya3.0_文档(10) Laya_示例(3) Laya2.0_示例(2)
...RES._res; } /** * 加载资源配置文件 */ public static loadResJson(srcName: string,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg.groups; RES.resources = arg.resources; RES.getInstance().event(RES.ONLOADEDRESJSON,arg); }else...
来源: Laya_社区 发布时间: 20161011
...tObj,'uint'))debugger;//在此行会自动断点 ================== AS: setName(123); function setName(name:String):void { trace(name); } JS: function setName (name){ if(!__DEBUGTYPE__(name,'String'))debugger;//在此行会自动断点 trace(name); } =================== AS: var asString:String = asO...
来源: Laya_社区 发布时间: 20151203
..."text":"this is a list","x":26,"y":5,"width":78,"height":20,"fontSize":14,"name":"label"},"type":"Label"},{"props":{"x":0,"y":2,"skin":"comp/clip_num.png","clipX":10,"name":"clip"},"type":"Clip"}],"props":{"name":"render","x":0,"y":0,"width":112,"height":30}}],"props":{"x":452,"y":68,"width":128,"he...
来源: Laya_社区 发布时间: 20170330
...all = myscene.addChild(sp.clone()); ball.name = i.toString(); } console.log("add finished: ", myscene.numChildren); for(var i=0; i<myscene.numChildren; i++){ ...
来源: Laya_社区 发布时间: 20200723
...示,修改红框的两地方/*[IF-FLASH]*/ return _domain.hasDefinition(name); //[IF-SCRIPT] return SpriteSheet.hasDefinition(name) || _domain.hasDefinition(name); //[IF-SCRIPT] var bmd:BitmapData = SpriteSheet.getBitmapData(name); /*[IF-FLASH]*/ var bmd:BitmapData = _bmdMap[name]; 三、处理加...
来源: Laya_社区 发布时间: 20151217
...oxCollider.setFromBoundBox(plane.meshFilter.sharedMesh.boundingBox); plane.name = "平面"; //正方体 let box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))) as Laya.MeshSprite3D; let boxMat: Laya.StandardMaterial = new Laya.StandardMaterial(); boxMat....
来源: Laya_社区 发布时间: 20180820
...r cell:Box=my_list.getCell(index) as Box; var my_btn:Button=cell.getChildByName("my_btn") as Button; var my_clip:Clip=cell.getChildByName("my_clip") as Clip; my_btn.on(Event.CLICK,this,onBtnClick,["my_btn"]); my_clip.on(Event.CLICK,this,onClipClick,["my_clip"]); } private function onBtnClick(name:St...
来源: Laya_社区 发布时间: 20161030
...ion(label){ if (!label)this._labels=null; else if (this._labels){ for (var name in this._labels){ this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } } ------------------------------------------------------------------------------...
来源: Laya_社区 发布时间: 20181105
...Files : *[static] Shader3D _materialUniformParamsMap : ArrayShader3D nameKey : StringKey[static] Shader3D _program : * = nullShader3D _pshader : *Shader3D _renderElementUniformParamsMap : ArrayShader3D _sceneUniformParamsMap : ArrayShader3D _spriteUniformParamsMap : ArrayShader3...
来源: laya_api 发布时间: 20170929
... data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景再回来 ...
来源: Laya_社区 发布时间: 20170324