大约有 638 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
... var info = cell.dataSource; var img_icon = cell.getChildByName("img_icon");//图标 var lab_name = cell.getChildByName("lab_name");//名称 } itemHandler一般不用。 2017-08-08 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20170808
... 4 人 Laya_XS • 2018-09-01 20:44 其实最简单的方式就是你通过name或通过ide里的var变量来管理你的层级对象,这样你也不用遍历对象来解决你的问题,可以直接通过var就可以获取,name还需要通过getChildByName获取。
来源: Laya_社区 发布时间: 20180901
...iFileMgr.getFileInfo(URL.formatURL(atlaspngUrl)); if(fileObj) { var fileMd5Name:String = fileObj.md5; var fileNativeUrl:String = MiniFileMgr.getFileNativePath(fileMd5Name); }else { fileNativeUrl = textureUrl;//4M包使用 } if(fileNativeUrl) { __JS__('wx').postMessage({url:url,atlasdata:postData,img...
来源: Laya_社区 发布时间: 20180830
...dow.addEventListener('resize', function () { if (document.activeElement.tagName == 'INPUT' || document.activeElement.tagName == 'TEXTAREA') { window.setTimeout(function () { document.activeElement.scrollIntoViewIfNeeded(); }, 0); } }); } $(document).on('focusout', function () {//软键盘收起...
来源: Laya_社区 发布时间: 20190313
...BlinnPhongExt.cull = layaBlinnPhong.cull; layaBlinnPhongExt.name = layaBlinnPhong.name; //enableLighting=false时顶点会出错 layaBlinnPhong.enableLighting=layaBlinnPhong.enableLighting; } } 2019-11-21 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20191121
...w Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.name = "camera"; //this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; //this.scene.ambientColor = new Laya.Vector3(1, 1, 1); camera.transform.translate(new La...
来源: Laya_社区 发布时间: 20190531
...下。部分浏览器参数参考:<!-- uc强制竖屏 --> <meta name="screen-orientation" content="portrait"> <!-- QQ强制竖屏 --> <meta name="x5-orientation" content="portrait"> <!-- UC强制全屏 --> <meta name="full-screen" content="yes"> <!-- QQ强制...
来源: Laya_社区 发布时间: 20160126
...ndex 地图块索引 *@param id 具体的TileSetID *@param name 属性名称 *@return */ __proto.getTileProperties=function(index,id,name){ if (this._tileProperties[index] && this._tileProperties[index][id]){ ret...
来源: Laya_社区 发布时间: 20190218
...糊 var mask = new Sprite(); mask.size(79, 118) mask.pos(38.5, 59); mask.name = "mask"; mask.pivotToCenter(); mask.graphics.drawRect(-38.5, -59, 79, 118, '#000000'); var maskContainer = new Sprite(); maskContainer.size(79, 118); maskContainer.pos(38.5, 59); maskContainer.pivotToCenter(); maskContain...
来源: Laya_社区 发布时间: 20170316
...ya2.0文件模式下var变量怎么引用? ui设计模式下属性中var,name有何区别? 反过来找var的问题 没有var属性的组件怎么获取到这组件的对象 scene添加View,view里面标记的var信息会丢失 LAYA2.0.0beata2使用场景编辑器无法通过var属性调用 ...
来源: Laya_社区 发布时间: 20190117