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

大约有 1,107 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)

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

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

1002. UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 [ 45%]

...标签嵌套RadioGroup会导致编辑器卡死 <Dialog width="725" sceneColor="#000000" height="500" editorInfo="compId=1"> <Image y="46" x="0" width="687" skin="setting/gd2_n.png" sizeGrid="30,30,30,30" height="402" editorInfo="compId=4"> <Image y="0" x="241.5" skin="setting/log18-5_...

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

1003. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...xt.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /**...

来源: Laya3.0_文档 发布时间: 20251010

1004. List滚动条问题 [ 44%]

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

1005. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSize = 24; this.displayText.bold = true; this.displayText.x = 10; // 例如,设置在屏幕左上角 this.displayText.y = 10; this.owner.scene.addChil...

来源: Laya3.0_文档 发布时间: 20251010

1006. laya.d3.core.BaseCamera_API3.0 [ 44%]

..._FORWARDRENDERING WORLDINVERTFRONT Accessors active activeInHierarchy clearColor components cullingMask destroyed displayedInStage farPlane fieldOfView hideFlags id is3D layer maxlocalYDistance nearPlane numChildren orthographic orthographicVerticalSize parent renderingOrder scene skyRenderer timer ...

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

1007. TextInput 在panle里滚动后输入位置错乱,求解 [ 44%]

...    Laya.stage.scaleMode = "showall";             Laya.stage.bgColor = "#232628";                          createInput();         }                  private function createInput():void         {             panel = new Panel();      ...

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

1008. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 44%]

... 请教一个关于laya2.5d项目美术规范的问题哈 2.0 drawTexture color参数无效 Laya.Loader.getRes请教 问题状态 最新活动: 2018-01-12 11:12 浏览: 1368 关注: 5 人 cuixueying • 2017-04-05 20:42 不用写成json,直接填写参数即可,跟接口处的参数一一对应...

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

1009. 屏幕方向:自动横屏与自动竖屏的设置详解(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 44%]

...字 var text = new Laya.Label(); text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水...

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

1010. Ease.elasticOut如何自定义参数,直接设置的话会变成number [ 44%]

...器地址传过来的GET参数 anchor锚点设置不生效 2.0 drawTexture color参数无效 关于同为object层,层级设置无效的问题 Laya3D里的material可以设置flat shading么 list 每次滑动,都是可以滑动一点点,可不可以如何设置,让他每次滑动,只能固...

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