大约有 712 项符合查询结果, 库内数据总量为 30,942 项。 (搜索耗时: 0.0059 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...his.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = n...
来源: Laya2.0_文档 发布时间: 20210715
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动...
来源: Laya3.0_文档 发布时间: 20240910
... Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } 打印的报错: 11111111111 TransformDemo.ts:73 Resources already exist,is repeated loading: D:/myLaya/myLaya/bin/res/threeDimen/particle/2d.lh laya...
来源: Laya_社区 发布时间: 20190509
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...
来源: Laya2.0_文档 发布时间: 20210714
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.re...
来源: Laya2.0_文档 发布时间: 20210715
... 影响产品画面宽高的三个设置,分别是设计宽高(Design Width、Design Height),缩放适配模式(Scale Mode)。 设计宽高,就是我们在IDE里的设置并看到的宽高, 这个宽高会影响在IDE里的UI场景背景大小,以及IDE的预览运行模式下,也是...
来源: Laya3.0_文档 发布时间: 20250310
...格的行数 list.repeatY = 4; //设置列表位置 list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏垂直滚动条 list.vScrollBarSkin = ""; //滚动在头或底回弹时间 list.scrollBar.elasticBackTime = 500; //滚动在...
来源: Laya2.0_文档 发布时间: 20210715
... sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); // console.log("再次往开放域发请求"); // openDataContext.postMessage({ // cmd:2, ...
来源: Laya_社区 发布时间: 20180529
...rams(near, far, invert, 1 / far) 投影参数 Camera.glsl u_Viewport(x, y, width, height) 视口 Camera.glsl u_CameraDirection 相机方向 Camera.glsl u_CameraUp 相机上朝向 Camera.glsl u_CameraPos 相机位置 Camera.glsl u_ZBufferParams:1.0 - far / near, far / near, (near - far) / (near * f...
来源: Laya3.0_文档 发布时间: 20250103
.../monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,func...
来源: Laya3.0_文档 发布时间: 20240910