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

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

71. 文本-复杂的文本样式 [ 60%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createText(); })(); function createText() { var txt = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开...

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

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

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

73. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 59%]

... Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //图像资源 var res:Array = [ "../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png", "../../../../res/ui/tree/cl...

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

74. 文本-复杂的文本样式 [ 59%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text; let txt = new Text(); Laya.stage.addChild(txt); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与...

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

75. 文本-自动调整文本尺寸 [ 59%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { // 该文本自动适应尺寸 var autoSizeText = createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthLim...

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

76. 计时器-间隔循环 [ 59%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var vGap = 200; rotateTimeBasedText = createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); rotateFrameRateBasedText = createText("基于...

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

77. 文本-自动调整文本尺寸 [ 59%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { const Text = Laya.Text; // 该文本自动适应尺寸 var autoSizeText = this.createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制...

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

78. 计时器-间隔循环 [ 58%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText =...

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

79. 输入设备-摇一摇 [ 58%]

... Laya.stage.width; console.height = Laya.stage.height - console.y; console.color = "#FFFFFF"; console.fontSize = 50; console.align = "center"; console.valign = 'middle'; console.leading = 10; } function startShake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake);...

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

80. 材质-BlinnPhong-反射贴图 [ 58%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.ltc"); var skyBox = new Laya.SkyBox(); skyBox.textureCube = textureCube; camera.sky = skyBox; var teapot1...

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