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

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

721. 加载-销毁Texture使用的图片资源 [ 63%]

...Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(th...

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

722. js进度,进度,js场景进度效果 [ 63%]

...否透明,只对2D(WebGL)、3D有效。 Laya.stage.bgColor = "none"; //背景透明 } else { Laya.init(800, 600); Laya.stage.bgColor = null; //背景透明 } //画布水平居中对齐 Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; //画布垂直居中对齐 Laya.stage.alignV = Laya.Stage.ALIGN_MIDD...

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

723. 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 [ 63%]

...The AudioContext was not allowed to start. matter.js的文档查看 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 问题状态 最新活动: 2018-05-30 16:54 浏览: 1421 关注: 2 人 Mr.余 • 2018-05-31 18:01 用LayaAir3D转换工具,...

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

724. 树状列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...性scrollBarSkin添加滚动条皮肤。 (图1-10) 这里还设置了背景颜色等属性,属性的详细说明见1.3节。 1.2.4 在代码里给 Tree 对象赋值 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后将Tree节点拖入到其暴露的属性入口中...

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

725. 启动画面LoadingView · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...) 1.进度条控制 开发者可以在config.js中,控制LoadingView的背景色、字体颜色、Tips等。 config.js的位置(也可以在项目中直接搜索config.js文件): Android: 工程目录下的assets/scripts/config.js IOS:工程目录下的resources/scripts/config.js config.js...

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

726. 屏幕适配-屏幕适配 [ 63%]

..."center"; //设置垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 var bg = new Image(); bg.skin = "../../res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "点击我切换适配模式(noscale)"; txt.bold = true; txt.pos(0, 200); txt.fontSize = 30...

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

727. 屏幕适配-屏幕适配 [ 63%]

..."center"; //设置垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 let bg = new Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); thi...

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

728. [LayaAir3]3.2.3 同一个手机运行Android项目帧数很低,浏览器运行web项目帧数稳定 [ 63%]

...就连接不上socket 微信小游戏,下拉手机的顶部菜单后,背景音乐停止播放,拉回去后,未触发onshow,按Home键回最小化,再回来后能触发onshow,可以继续播放背景音乐 华为mate60系列手机在微信浏览器打开Laya2.x版本游戏会闪屏 3d...

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

729. 混合模式-Lighter [ 63%]

...= "#232628"; setup(); })(); function setup() { createPhoenixes(); // 动态背景渲染 evalBgColor(); Laya.timer.frameLoop(1, this, renderBg); } function createPhoenixes() { var scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 加了混合模式...

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

730. 混合模式-Lighter [ 62%]

... = new Tween(); this.setup(); } setup() { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg); } createPhoenixes() { let scaleFactor = Math.min( Laya.stage.width / (phoenixWidth * 2), Laya.stage.height / phoenixHeight); // 混合模式的凤...

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