大约有 108 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
... 更新岛 _proto.update = function(target){ var obj = {}; // 解析target switch (target.type) { case 1: obj.type = "mountain"; break; case 2: obj.type = "statue"; break; case 3: obj.type = "tower"; break; case 4: obj.type = "angel"; break; case 5: obj.type = "aeroboat"; break; default: alert("网...
来源: Laya_社区 发布时间: 20170720
...化成BlinnPhong材质功能(图6),点击菜单LayaAir Tool--------> Switch Shader to LayaBlinnPhong选项后,可以发现资源界面中的模型会变成紫色,场景中的效果也有所变化,说明材质类型修改成功。 (图1) 鼠标选择场景中的任...
来源: Laya2.0_文档 发布时间: 20210714
...tage.scaleMode != "noscale") { scaleY = divH / desH; scaleX = divW / desW; switch (Laya.stage.scaleMode) { case "noborder": if (scaleX > scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case "showall": if (scaleX < scaleY) { scaleY = scaleX; } else { scaleX = scaleY; } break; case...
来源: Laya_社区 发布时间: 20171205
... this._mapHeightHalf = this._map.height / 2; switch (layerData.type) { case "tilelayer": break; case "objectgroup": var tArray = layerData.objects; ...
来源: Laya_社区 发布时间: 20220627
...rivate function onClick(e:Event):void { switch(e.currentTarget) { case btn1: show(); break; case btn2: ...
来源: Laya_社区 发布时间: 20180425
... if (property instanceof Material) { switch (node.type) { case KeyFrameValueType.Float: property = property.getFloat(node.getPropertyByIndex(i)); ...
来源: Laya_社区 发布时间: 20240517
...awUnderline(align, x, y, lineIndex) { var lineWidth = this.underLineWidth; switch (align) { case 'center': x -= lineWidth / 2; break; case 'right': x -= lineWidth; break; case 'left': default: break; } y += this._charSize.height; this._graphics.drawLine(x, y, x + lineWidth, y, this.underColor || thi...
来源: Laya_社区 发布时间: 20180417
...n • 2018-01-18 16:38 我这里可以显示 那个导出插件有有一个switch to 3Dlayashader 你点一下 layali • 2018-01-18 16:45 @qian:好 layali • 2018-01-18 16:47 @qian:能加下qq吗,这里有点说不清楚的感觉 layali • 2018-01-18 16:48 @qian:我qq834777406 layali • 2018-0...
来源: Laya_社区 发布时间: 20180118
... var name1:String ; switch(dir1){ case 0:name1 = "stand4";break; case 1:name1 = "stand5";break; case 2:name1 = "stand6";break; ...
来源: Laya_社区 发布时间: 20170921
...onsole.log("update"); var c = Math.floor(Math.random()*4); console.log(c); switch(c) { case 0:text.color='red';break; case 1:text.color="blue";break; case 2:text.color ='black';break; case 3:text.color = 'green';break; case 4:text.color = "yellow";break; } console.log(text.color); } ```注意Props...
来源: Laya_社区 发布时间: 20180620