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

大约有 813 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

251. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 63%]

...ate function aniUrls(aniName:String,length:int):Array { var urls:Array=[]; for(var i:int=0;i(图6) 我们继续沿用之前的示例,在onLoaded方法中添加play()。 onLoaded方法中的代码如下所示 ```java private function onLoaded():void { //添加到舞台 Laya.stage.addChild(roleA...

来源: Laya2.0_文档 发布时间: 20210715

252. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 63%]

...nMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image...

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

253. laya绘制图形进行缩放的时候有问题 [ 62%]

...amp;& this.scaleX >= 0.5) { this.scaleX -= 0.1; this.scaleY -= 0.1; for (var i = 0; i < this.nodes.length; i++) { this.nodes[i].scaleX += 0.1; this.nodes[i].scaleY += 0.1; } } else if (e.delta < 0 && this.scaleX <= 1.5) { this.scaleX += 0.1; this.scaleY += 0.1; for (var i = 0...

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

254. html固定宽高,设置垂直居中没有效果。只有水平居中才生效。看了下源码,感觉在updatePos函数里的算法不对 [ 62%]

...le); //我自己添加的部分 if(this._getCSSStyle()._getValign() == 1){ for(var i = 0; i < this._childs.length; i++){ var e = this._childs[i]; if(e instanceof HTMLElement && e._text.words){ for(var j = 0; j < e._text.words.length; j++){ var w = e._text.words[j]; w.y = (this.height -...

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

255. 如何使用vscode编译laya项目 [ 62%]

...则 //获取Node插件和工作路径 let ideModuleDir; let workSpaceDir; for(var argv of process.argv) { if(argv.indexOf("--cwd=") == 0) { ideModuleDir = argv.split("=")[1] + "\\node_modules\\"; } else if(argv.indexOf("--gulpfile=") == 0) { workSpaceDir = argv.split("=")[1].replace("/.laya/compile....

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

256. 2D物理-桥 [ 62%]

...ntIntance(pointRB1); let preBody = pointRB1; let width = 20, height = 2.5; for (let i = 0; i { let targetX = (300 + Math.random() * 400) / Laya.Physics.PIXEL_RATIO, targetY = 500 / Laya.Physics.PIXEL_RATIO; let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall); let circleBody = newBall....

来源: Laya2.0_示例 发布时间: 20241001

257. UI-RefreshList [ 62%]

...//所有的红点数据索引都增加 if (this.redHotStatus.length > 0) { for (let i = 0; i { //更新list数据源 this.refreshList.array = _arr; this.refreshList.scrollTo(line); //将选中索引设定为该索引 this.refreshList.selectedIndex = index; //恢复滚动条到原位 this.scrollBarIs...

来源: Laya2.0_示例 发布时间: 20241001

258. 空项目的情况下面ios打包出现链表错误 [ 62%]

...86 in file ../LayaRuntime-iOS/libs/libcurls.a (3 slices) Undefined symbols for architecture i386: "_OBJC_IVAR_$_conchConfig.m_nEnterPlatformType", referenced from: -[MarketAppStore getEnterPlatformType] in MarketAppStore.o "_OBJC_CLASS_$_LayaPlatformCallback", referenced from: objc-class-ref in Mark...

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

259. list item 添加事件后无法监听 [ 62%]

...; } function createAPIList(api_list_view) {     let data = [];     for (let i = 0; i < 10; i++) {         let text_view = createTextView("12345", "black", 18, innerWidth, 35, "white");         data.push(text_view)     }     return data; } function drawAPIList() { ...

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

260. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 61%]

...):void { if(!MiniAdpter.isZiYu) { var atlasJson:Object = Loader.getRes(URL.formatURL(url)); if(atlasJson) { var textureArr:Array = (atlasJson.meta.image as String).split(","); //构造加载图片信息 if (atlasJson.meta && atlasJson.meta.image) { //带图片信息的类型 var toloadPics:A...

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