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

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

61. 关于闭包的问题 [ 71%]

...", (bg.width / letterList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + ...

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

62. 3d 轮廓描边示例改描边颜色无效 [ 71%]

...; var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8A8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); //清楚渲染目标的颜色为黑色,不清理深度 buf.clearRe...

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

63. UI-List [ 71%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem);...

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

64. UI-List [ 71%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stag...

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

65. 鼠标交互-键盘交互 [ 71%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { listenKeyboard(); createLogge...

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

66. 截屏文件没有保存 [ 71%]

...ole.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byteLength + " " + width + " " + height); console.log(conch.getCachePath()+"/test.png"); }); } 输出...

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

67. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 71%]

...dFinish() { // .......前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh a...

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

68. 【解决】富文本html下划线换行bug [ 71%]

....length-1; var lastWords=words[lastIndex]; var lineY=lastWords.y+lastWords.height; if(cssStyle.textDecoration!="none"){ if(words[0].y != words[words.length-1].y){ let index = 0; let slsIndex;//secondLineStartIndex while(true){ if(words[index].y != words[index+1].y){ slsIndex = index; break; } index+...

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

69. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 70%]

...ish():void{ // .......前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh a...

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

70. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 70%]

...ish():void { .......//前面摄影机,猴子精灵相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSprite3D terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter...

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