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

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

701. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

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

702. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

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

703. Resources already exist,is repeated loading 加载特效报重复加载 [ 42%]

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

704. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 39%]

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

705. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 39%]

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

706. 项目设置说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

... 影响产品画面宽高的三个设置,分别是设计宽高(Design Width、Design Height),缩放适配模式(Scale Mode)。 设计宽高,就是我们在IDE里的设置并看到的宽高, 这个宽高会影响在IDE里的UI场景背景大小,以及IDE的预览运行模式下,也是...

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

707. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 36%]

...格的行数 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

708. 微信小游戏利用开放域好友关系链做排行榜 [ 36%]

...         sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");                 // openDataContext.postMessage({                 //  cmd:2,     ...

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

709. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

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

710. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

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