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

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

81. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 79%]

... android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Connecting to com.layabox.game Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section o...

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

82. 分享个资源加载的方法,类似白鹭的加载方式 [ 78%]

...(RES.ONLOADGROUPERROR,"资源组名称不能为空"); return; } var group; for(var i in RES.groups){ var name = RES.groups[i].name; if(name == groupName){ group = RES.groups[i]; break; } } if(!group){ console.error("加载了不存在的资源组"); RES.getInstance().event(RES.ONLOADGROUPERROR,"加...

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

83. 源码List的一次代码错误 [ 78%]

...optimizeScrollRect = true; box = cacheBox; } else { [b] var arr = []; [/b] for (var i = this._cells.length - 1; i > -1; i--) { var item = this._cells[i]; item.removeSelf(); arr.push(item); } this._cells.length = 0; } for (var k = startY; k < numY; k++) { for (var l = 0; l < numX; l++) { [b]...

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

84. SphereCollider和MeshCollider碰撞检测的bug [ 78%]

....ContainmentType.Disjoint*/0){ var positions=meshCollider.mesh._positions; for (var i=0,n=positions.length;i < n;i++){ if (Collision.sphereContainsPoint(this.boundSphere,positions[i])===/*laya.d3.math.ContainmentType.Contains*/1) return true } return false; }else { return false; } break ;   上...

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

85. 请问下,多个input ,我怎么给他赋值呢,有没有类似jquery的批量处理,还是只能(input1,input2,input3......)一个个的写? [ 77%]

...复 cuixueying 赞同来自: 给你的input起有规律的命名,通过for给他们赋值! 2017-09-12 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liuhang123 相关问题 请问LayaAir中如何使图片以圆形的方式显示? ...

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

86. 性能测试-卡通人物 [ 77%]

...l, Loader.ATLAS); })(); function createCharacters() { characterGroup = []; for(var i = 0; i = 0; --i) { animateCharactor(characterGroup[i]); } } function animateCharactor(charactor) { charactor.x += moveSpeed; charactor.rotation += rotateSpeed; if (charactor.x > Laya.stage.width + extraSpace) { char...

来源: Laya_示例 发布时间: 20240930

87. 循环问题,求解啊11111111 [ 77%]

循环问题,求解啊11111111 for循环里有四个方法。怎么让循环的时候循环完一个方法之后在循环另一个方法 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 176*****736 赞...

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

88. 使用layaide进行打包,提示如下错误。 [ 77%]

...itch/client/bird/bin/js/" #文件夹目录   fns = [os.path.join(root,fn) for root, dirs, files in os.walk(path) for fn in files] for f in fns: print(f) with open(f, "r+") as f: old = f.read() f.seek(0) f.write("\"use strict\";") f.write(old) print(len(fns)) ``` 2018-05-24 0 1 分享 微博 QZONE ...

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

89. 2D物理-碰撞事件与传感器 [ 77%]

...nsorCollider.radius = 100; sensorCollider.x = 450; sensorCollider.y = 300; for (let i = 0, len = this.count; i = []; private touching: Array = []; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); Phys...

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

90. 性能测试-卡通人物 [ 76%]

... extraSpace = 50, moveSpeed = 2, rotateSpeed = 2, characterGroup; class PerformanceTest_Cartoon { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(...

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