大约有 2,508 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)
Laya_社区(2277) Laya2.0_文档(89) Laya3.0_文档(46) Laya3.0_api(39) Laya2.0_api(30) laya_api(15) Laya_示例(6) Laya2.0_示例(6)
...性scrollBarSkin添加滚动条皮肤。 (图1-10) 这里还设置了背景颜色等属性,属性的详细说明见1.3节。 1.2.4 在代码里给 Tree 对象赋值 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后将Tree节点拖入到其暴露的属性入口中...
来源: Laya3.0_文档 发布时间: 20251010
...) 1.进度条控制 开发者可以在config.js中,控制LoadingView的背景色、字体颜色、Tips等。 config.js的位置(也可以在项目中直接搜索config.js文件): Android: 工程目录下的assets/scripts/config.js IOS:工程目录下的resources/scripts/config.js config.js...
来源: Laya3.0_文档 发布时间: 20251010
..."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_示例 发布时间: 20251209
..."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_示例 发布时间: 20251209
...就连接不上socket 微信小游戏,下拉手机的顶部菜单后,背景音乐停止播放,拉回去后,未触发onshow,按Home键回最小化,再回来后能触发onshow,可以继续播放背景音乐 华为mate60系列手机在微信浏览器打开Laya2.x版本游戏会闪屏 3d...
来源: Laya_社区 发布时间: 20250225
...= "#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_示例 发布时间: 20251209
... = 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_示例 发布时间: 20251209
...声音出错,求指教 求教: soundManager如何停止正在播放的背景音乐 [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 laya3D动画无法播放 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException:...
来源: Laya_社区 发布时间: 20190421
...ot;#000000", //文字的颜色 backgroundColor:"#ffffff", //背景颜色 }; //将传入的配置覆盖掉默认配置 if(!!options && typeof options === "object"){ for(var i in options){ settings[i] = options[i]; } } var fontSize = settings.canvasWidth / (settings.te...
来源: Laya_社区 发布时间: 20180814
...s开始 修改代码 (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = null; //背景右边补丁 this.rightBg = null; Floor....
来源: Laya_社区 发布时间: 20160801