大约有 911 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
Laya_社区(460) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...ure2D object. * @param canvasWidth The width of the canvas. * @param canvasHeight The height of the canvas. * @param offsetX The X-axis offset for drawing. * @param offsetY The Y-axis offset for drawing. * @param rt The render target. * @param isDrawRenderRect A boolean indicating whether to draw th...
来源: Laya_社区 发布时间: 20250827
...t = new Laya.Text(); txt.text = "武器坐骑角色"; txt.width = 250; txt.height = 250; txt.wordWrap = true; txt.align = "center"; txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。...
来源: Laya_社区 发布时间: 20171028
....Browser.width / Laya. Browser.pixelRatio + "px"; this.mapDiv.style.height = Laya. Browser.height / Laya. Browser.pixelRatio + "px"; } ``` refit()使百度地图充满整个窗口,由于侦听了resize事件,在窗口resize时也会重新填充窗口。 ##### 2.3 updatePosition...
来源: Laya2.0_文档 发布时间: 20210714
... = Laya.Browser.width / Laya. Browser.pixelRatio + "px"; this.mapDiv.style.height = Laya. Browser.height / Laya. Browser.pixelRatio + "px"; } refit()使百度地图充满整个窗口,由于侦听了resize事件,在窗口resize时也会重新填充窗口。 2.3 updatePosition函数: // 更新...
来源: Laya3.0_文档 发布时间: 20251010
.../var bounds = ani.getGraphicBounds(); //ani.pivot(bounds.width / 2, bounds.height / 2); 加了这个,第次创建会you有问题 2018-04-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zjwytqm 相关问题 看了其他引擎才发...
来源: Laya_社区 发布时间: 20180411
...put = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j++) { if (str[i] == j.toString()) { isNotNumbe...
来源: Laya_社区 发布时间: 20190225
...准 如何给List添加一个自适应高度的背景颜色? 使用CreateHeightMap脚本生成高度图的时候,高度图旋转了90°是什么原因? 使用高度图的时候 Cannot read property 'width' of undefined 子域里面排行榜滑动无效,找不到原因。。跪求指导。。...
来源: Laya_社区 发布时间: 20190418
...eateMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.js:257:31) at Tile...
来源: Laya_社区 发布时间: 20181026
...? var dirBgLeft=cameraBgRight=20,dirBgBottom=20,dirBgSize=Browser.clientHeight*0.5,dirSpace=dirBgSize*0.2; var directionBg = new Sprite(); directionBg.loadImage("../bin/res/img/btn_direction$bg.png",dirBgLeft,Browser.clientHeight,dirBgSize,dirBgSize); Laya.stage.addChild(directionBg); Sprite.loadI...
来源: Laya_社区 发布时间: 20170426
按钮点击的位置发生偏移 <div style="padding: 50px 0px;height:100vh"> <div style="position: relative"> <div id="mylayaCanvas" ></div> </div> </div>如代码所示 指定layacanvas外包两层div 样式如代码这样设置后发生点击的范围跟实...
来源: Laya_社区 发布时间: 20200825