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

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

311. 屏幕适配-缩放-No Border [ 75%]

...= Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#2...

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

312. 屏幕适配-缩放-No Scale [ 75%]

... = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232...

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

313. UI-Label [ 75%]

...okeColor; } Laya.stage.addChild(label); return label; } })();module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

314. UI-Tab [ 75%]

...le.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["../../res/ui/tab1.png", "../../res/ui/tab2.png"]; constructor(){ // ...

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

315. 屏幕适配-缩放-Extract Fit [ 75%]

...aya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = ...

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

316. 屏幕适配-缩放-Show All [ 75%]

...= Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#23...

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

317. 缓动-缓动函数演示 [ 75%]

...{ this.label.text = value; } } new Tween_EaseFunctionsDemo();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...

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

318. 缓动-缓动函数演示 [ 75%]

...y - 3); input.inputElementYAdjuster = 1; return input } })();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...

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

319. UI-Tab [ 75%]

...前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/tab1.png", "res/ui/tab2.png"]; constructor(){ // 不支持WebGL...

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

320. 自定义shader-地形shader [ 75%]

...alDefine("CUSTOM_LIGHTMAP"); } } new Shader_Terrain;package shaderModule { import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya....

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