大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0022 秒)
...dFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0; h < textureHeight; h++) { var...
来源: Laya3.0_文档 发布时间: 20230303
...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...
来源: Laya3.0_文档 发布时间: 20251010
...开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终...
来源: Laya3.0_文档 发布时间: 20251010