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

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

31. 问一下这个问题要怎么改啊? [ 69%]

... bgRes:String; public function Main() { Laya.init(2048,1536); Laya.stage.bgColor = "#333333"; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; bgRes = "res/bg.jpg"; addPic("res/bg.jpg", 0, 0); var txt:Text = new Text(); txt.text = "Fishing Game"; txt.color = "#FFFFFF"; txt.fontSize = 60; txt.stroke = 5; ...

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

32. List滚动条问题 [ 69%]

...g_image); // 金豆数 this._goldLabel = new Laya.Label(); this._goldLabel.color = "#FFBA00"; var font = GameUI.GetFont("$font.marketdlg.default"); this._goldLabel.font = font.family; this._goldLabel.bold = (parseInt(font.bold | 0) == 0 ? false : true); this._goldLabel.fontSize = parseInt(font.size)...

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

33. 循环监听按钮,如何进行传参和接受参数 [ 69%]

...跳帧。 怎样获取浏览器地址传过来的GET参数 2.0 drawTexture color参数无效 List滑动条会引起单元格上的按钮点击后多次触发点击事件 IDE中js压缩工具,能不能用类似命令行,或者编译参数等等方式调用? 爆循环依赖警告,怎办?warn...

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

34. Panel中添加图片无法显示,文本可以 [ 68%]

...= new laya.ui.Label();     label.text = "fsadfsdfsdfsdfsdf";     label.color = "#ff0000";     label.fontSize = 40;     label.y = 50;     var label2 = new laya.ui.Label();     label2.text = "fsadfsdfsdfsdfsdf";     label2.color = "#0000ff";     label2.fontSize = 40;     label2.y = 1...

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

35. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 66%]

...private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png",...

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

36. 分享一个自己做的游戏公告功能,跑马灯效果 [ 65%]

....html.style.lineHeight = 55 this.html.style.align = "left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x = this.html.x if (_x < -_w) ...

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

37. laya.gltf.glTFSkin_API3.0 [ 64%]

...0; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } ...

来源: Laya3.0_api 发布时间: 20230115

38. laya.gltf.glTFScene_API3.0 [ 64%]

...0; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } ...

来源: Laya3.0_api 发布时间: 20230115

39. laya.gltf.glTFCameraType_API3.0 [ 64%]

...0; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } ...

来源: Laya3.0_api 发布时间: 20230115

40. laya.gltf.glTFAnimationChannelTarget_API3.0 [ 64%]

...0; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } ...

来源: Laya3.0_api 发布时间: 20230115