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

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

861. ui.list的高度如果是cell高度的3.5倍,但是repeatY只是1-2的时候还是会可以上下滑动 [ 52%]

...准 如何给List添加一个自适应高度的背景颜色? 使用CreateHeightMap脚本生成高度图的时候,高度图旋转了90°是什么原因? 使用高度图的时候 Cannot read property 'width' of undefined 子域里面排行榜滑动无效,找不到原因。。跪求指导。。...

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

862. tiledMap 官方示例都运行不了 [ 52%]

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

863. Sprite.loadImage()中设置的y的值为Browser.ClientHight时不准确是为什么? [ 52%]

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

864. 按钮点击的位置发生偏移 [ 51%]

按钮点击的位置发生偏移 <div style="padding: 50px 0px;height:100vh"> <div style="position: relative"> <div id="mylayaCanvas" ></div> </div> </div>如代码所示 指定layacanvas外包两层div 样式如代码这样设置后发生点击的范围跟实...

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

865. HTMLDIVElement设置innerHTML时报错 [ 51%]

...错 如图所示。测试代码Laya.init(Laya.Browser.width, Laya.Browser.height); var html = new Laya.HTMLDivElement(); html.style.fontSize = 30; html.style.whiteSpace = "nowrap"; html.innerHTML = '<span style="color:#ffffff">test</span>'; html.pos(500, 300); html.size(html.contextWidth...

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

866. vbox动态添加子项目问题 [ 51%]

... vbox:HBox = new HBox(); Laya.stage.addChild(vbox); vbox.width = 500; vbox.height = 300; var image:Image = new Image(); image.skin = "rank/132.jpg"; vbox.addChild(image); image.size(100,100); var image2:Image = new Image(); image2.skin = "rank/132.jpg"; vbox.addChild(image2); image2.size(100,100); 2...

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

867. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 51%]

...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...

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

868. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 51%]

..._img, Laya.Handler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮...

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

869. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 50%]

... Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.l...

来源: Laya2.0_文档 发布时间: 20210714

870. 文字显示模糊 [ 50%]

...true;             _txt.width=300;             _txt.height=_txt.textHeight+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,...

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