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

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

11. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 93%]

...字体需要频繁修改,可以勾选此项以提升性能 文本颜色color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 样式 style “B”(bold)是否为粗体,“I”(italic)是否为斜体,“U”是否有下划...

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

12. 缓动-缓动函数演示 [ 93%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createCharacter(); this.createEaseFunctionList(); this.createDurationCrontroller(); } createCharacter() { const Sprite = Laya.Sprite; character = new Sprite(); Laya.stage.addC...

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

13. 缓动-缓动函数演示 [ 93%]

...this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); // 主要逻辑代码 var Input = Laya.Input; var Sprite = Laya.Sprite; var...

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

14. 屏幕适配-自动横屏 [ 91%]

...= "showall"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1...

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

15. 屏幕适配-自动竖屏 [ 91%]

...e = "showall"; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1;...

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

16. laya.display.cmd.FillTextCmd_API3.0 [ 91%]

...绘制文字 Hierarchy FillTextCmd Index Properties x y ID Accessors align color font stroke strokeColor text Methods recover create Properties x x: number = 0 Defined in laya/display/cmd/FillTextCmd.ts:19 开始绘制文本的 x 坐标位置(相对于画布)。 y y: number = 0 Defined in laya/d...

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

17. 屏幕适配-自动竖屏 [ 91%]

...SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - ...

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

18. 屏幕适配-自动横屏 [ 91%]

...ALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width -...

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

19. 关于缓动函数from的一些问题记录 [ 91%]

...0; Laya.Tween.to(letterText,{y:100,update:new Laya.Handler(this,this.changeColor,[letterText])},3000,Laya .Ease.backOut,Laya.Handler.create(this,this.onEaseComplete),1000,null,true); function onEaseComplete(){ console.log("ease complete"); } function changeColor(text){ console.log("update"); var c =...

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

20. IDE-显示IDE创建的界面 [ 90%]

...的value为2 //复杂复制,可以通知某个属性,比如:label:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源数组 var ...

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