大约有 814 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0045 秒)
Laya_社区(660) Laya2.0_文档(61) Laya_示例(34) Laya2.0_示例(30) Laya3.0_文档(25) Laya3.0_api(3) Laya2.0_api(1)
...ist:any[]; var item:any; for(var key in shaderObj) { list = shaderObj[key]; for(var i:number=0;i<list.length;i++) { item...
来源: Laya_社区 发布时间: 20210608
...item, value) { if (progress != null) { item.progress = value; var num = 0; for (var j = 0; j < items.length; j++) { var item1 = items[j]; if (item1) { let prog = item1.progress == undefined ? 0 : item1.progress; num += item1.size == undefined ? 0 : item1.size * prog; } } var v = num / totalSize; ...
来源: Laya_社区 发布时间: 20200427
...th.PI; lasers.push(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (var i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth,...
来源: Laya_示例 发布时间: 20241118
...n(){ var boxSp = new laya.display.Sprite(); // boxSp.cacheAsBitmap = true; for(var i = 0; i < this.MapRowNum; i++){ for(var j = 0; j < this.MapColNum; j++){ var box = new laya.display.Sprite(); box.graphics.drawRect(0, 0, 30, 30, null, "#e6e4ef", 1); box.x = i * 30; box.y = j * 30; boxSp.addCh...
来源: Laya_社区 发布时间: 20161008
... boundFrustum=camera.boundFrustum; var camPos=camera._transform.position; for (var i=0;i < validCount;i++){ var render=renders ; if (camera._isLayerVisible(render._owner._layer)&& render._enable){ ...
来源: Laya_社区 发布时间: 20190711
... color = this.color; let underline = this.underline; let bold = this.bold; for (var i = begin; i < end; i++) { var lines = this.typeLines[i]; var _word; if (this.align == "right") { startX = this._width - padding[1] - this.getTextLinesWidth(lines); } else if (this.align == "center") { startX = (t...
来源: Laya_社区 发布时间: 20180417
...tion.raycastAllFromTo(from, to, hitResults); //遍历射线检测的结果 for (i = 0, n = hitResults.length; i (图3) 不穿透的射线 ![](img/4.png)(图4) 穿透的射线 B类`rayCast`,`rayCastAll`方法使用,这段代码来自于官方示例。([demo地址](https://layaair.ldc.layabox.co...
来源: Laya2.0_文档 发布时间: 20210715
...****051 • 2019-05-08 12:43 遇到同样问题,报错 Undefined symbols for architecture arm64: "_OBJC_CLASS_$_conchConfig", referenced from: objc-class-ref in GameReadingViewController.o "_OBJC_CLASS_$_conchRuntime", referenced from: objc-class-ref in GameReadingViewControlle...
来源: Laya_社区 发布时间: 20180615
... //10x10个黑色方块,鼠标移动过去时变红,鼠标移走恢复 for (var i = 0; i < 10; i++) { for (var j = 0; j < 10; j++) { sp[j + i * 10] = new Laya.Sprite(); Laya.stage.addChild(sp[j + i * 10]); sp[j + i * 10].graphics.drawRect(0, 0, 50,...
来源: Laya_社区 发布时间: 20160715
...th.PI; lasers.push(laser); Laya.stage.addChild(laser); frequency *= 0.9; } for (let i = 0; i 60 * 0.3) { laser.alpha *= 0.9; laser.scaleY = laser.alpha; if (laser.alpha = []; private tick: number = 0; private frequency: number = 80; private type: number = 0; constructor() { Laya.init(this.viewWidth,...
来源: Laya2.0_示例 发布时间: 20241118