大约有 1,595 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0093 秒)
Laya_社区(1080) Laya3.0_api(185) Laya2.0_api(130) laya_api(125) Laya2.0_文档(36) Laya3.0_文档(26) Laya2.0_示例(7) Laya_示例(6)
...了,也赋值了但是页面没跟新,addChild好像无效果 var fooddata = []; for (var X = 0; X < res.data.length; X++) { var foodid = res.data[X]['n_food_id']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: { text: foodtxt }...
来源: Laya_社区 发布时间: 20181221
...请参考: 1./*[COMPILER OPTIONS:ForcedCompile]*/2. __JS__("window.eval(data)") 2016-10-20 1 7 分享 微博 QZONE 微信 Moeb 赞同来自: ts是不是就没有这种分包? 2017-11-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20161020
...ServerListView(){ ServerListView.super(this); this.selectedIndex = -1; var data = ; //设置服务器列表项信息 for(var i=0;i<100;i++){ data = {select:{label:"服务器"+(i+1),selected:false}, flag:{text:(i==0)?"(推荐)":""}}; } this.sList.dataSource = data;//批量赋值 this.sList.selectE...
来源: Laya_社区 发布时间: 20170805
...发布了2.0 版本,在2.0 版本里面多了一个组件,就是WXOpenDataViewer组件这个歌组件是专门为 做微信小游戏 显示开放域使用的,我自己在论坛上找了很久没有找到合适的教程,官方文档也是写的模棱两可,于是自己探索了两天,终...
来源: Laya_社区 发布时间: 20190307
... case "resizeShared": { Laya.Browser.window.sharedCanvas.width = message.data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix....
来源: Laya_社区 发布时间: 20180903
...是一个颜色滤镜应用类。 Public Properties PropertyDefined By data : ColorFilterColorFilterActionPublic Methods MethodDefined By ColorFilterAction() 创建一个 ColorFilterAction 实例。 ColorFilterAction apply(srcCanvas:*):* 给指定的对象应用颜色滤镜。 ColorFilte...
来源: laya_api 发布时间: 20170422
list问题 我使用this.taskShowMainList.array = data,创建了一个list,data的数据长度是10,但是在打印console.log(this.taskShowMainList.cells)的时候,发现cells的长度只有8, 这样我就并不能获得list下的所有生成的item。我想获取list下生成的所有...
来源: Laya_社区 发布时间: 20190723
...cumentationAll Packages | All Classes | Index | Frames No Frames PerfDataProperties | Methods Packagelaya.utilsClasspublic class PerfDataInheritancePerfData ObjectPublic Properties PropertyDefined By color : intPerfData datapos : int = 0PerfData datas : ArrayPerfData id : intPer...
来源: Laya2.0_api 发布时间: 20190513
...chy AnimatorControllerParse Index Methods parse Methods Static parse parse(data: TypeAnimatorControllerData): { clipsID: string[]; ret: TypeAnimatorControllerData } Defined in laya/components/AnimatorControllerParse.ts:89 Parameters data: TypeAnimatorControllerData Returns { clipsID: string[]; ret: ...
来源: Laya3.0_api 发布时间: 20231115
...素数据,赋给另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this...
来源: Laya_社区 发布时间: 20210114