大约有 1,880 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1141) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(51)
.../ public class WWJ_Main { private const stageWidth:int = 540; private const stageHeight:int = 960; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; ...
来源: Laya_社区 发布时间: 20170822
...ring); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align', "middle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style'...
来源: Laya_社区 发布时间: 20180103
...LayaAirIDE让项目开发更高效。const Browser = Laya.Browser; let viewWidth = Browser.width, viewHeight = Browser.height, lasers = [], tick = 0, frequency = 80, type = 0; class PIXI_Example_23 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handl...
来源: Laya2.0_示例 发布时间: 20260303
...画如何设置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚点可以设置,如何实现 元素旋转后,所绑定的事件失效 unity的坐标和旋转转换到laya需要做什么运算 问题状态 最新活动: 2020-11-20 19:18 ...
来源: Laya_社区 发布时间: 20201120
...截图确认) gl.enable(gl.SCISSOR_TEST); gl.scissor(0, 0, RenderState2D.width, RenderState2D.height); 3、这个方案确认可行且比设置 isAntialias 性能要好后,我们将写入引擎并修改经验分享贴,所以也请您尽快测试并给我们反馈哈。 2021-09-27 0 2 分享 微...
来源: Laya_社区 发布时间: 20210923
...his.vscroll.skin = "atlas/comp/vscroll.png";//滚动条皮肤 this.vscroll.width = 300;//滚动条的宽度 this.vscroll.pos(300, 300);//滚动条的位置 this.vscroll.min = 0;//滑块的最小滚动位置 this.vscroll.max = 10;//滑块的最大滚动位置 this.vscroll.scrollSize = 1;//点击按...
来源: Laya3.0_文档 发布时间: 20251010
...scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.scaleMode = Stage.SCALE_FIXED_WIDTH; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); ...
来源: Laya_社区 发布时间: 20170720
...= p.decode(); let texture:Laya.Texture2D = new Laya.Texture2D(544,960);//p.width,p.height this.texture = texture; this.refreshCamera(); //在U方向上使用WARPMODE_CLAMP // texture.format = Laya.TextureFormat.ASTC10x10 texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE...
来源: Laya_社区 发布时间: 20220815
... img.graphics.drawTexture(texture); //设置纹理宽高 img.size(texture.width, texture.height); } } } ``` 代码运行效果如图7-2所示。  (动图7-2)
来源: Laya2.0_文档 发布时间: 20210715
...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