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

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

41. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 77%]

...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

42. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 77%]

... public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:numbe...

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

43. 其他引擎的Demo-Example_04 [ 77%]

...ath.random() / 20); var stars = []; var w = Browser.width; var h = Browser.height; var slideX = w / 2; var slideY = h / 2; var speedInfo; (function() { Laya.init(w, h, WebGL); createText(); start(); })(); function start() { for (var i = 0; i w) { stars[i].x = stars[i].x - w; } else if (stars[i].x h)...

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

44. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 77%]

... public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:numbe...

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

45. 为什么谷歌浏览器调试可以显示这些文字打包后却没有了 [ 76%]

...set():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(...

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

46. 鼠标交互-键盘交互 [ 76%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.listenKey...

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

47. 混合模式-Lighter [ 76%]

...// 一只凤凰的分辨率是550 * 400 var phoenixWidth = 550; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; var bgColorChannels = { r: 99, g: 0, b: 0xFF }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, W...

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

48. 混合模式-Lighter [ 76%]

...const // 一只凤凰的分辨率是550 * 400 phoenixWidth = 500, phoenixHeight = 400, bgColorChannels = { r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya....

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

49. Text.as中parseLines方法里的问题 [ 76%]

...rrBitmapFont) { _charSize.width = _currBitmapFont.getMaxWidth(); _charSize.height = _currBitmapFont.getMaxHeight(); } else { var measureResult:* = Browser.context.measureText(_testWord); _charSize.width = measureResult.width; _charSize.height = (measureResult.height || fontSize); } var lines:Array =...

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

50. 其他引擎的Demo-Example_04 [ 75%]

...y = 1.0 + (Math.random() / 20), stars = [], w = Browser.width, h = Browser.height, slideX = w / 2, slideY = h / 2, speedInfo; class PIXI_Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自...

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