大约有 904 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)
Laya_社区(453) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...准 如何给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
...错 如图所示。测试代码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
... 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
...= 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
..._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
... 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
...true; _txt.width=300; _txt.height=_txt.textHeight+10; _txt.y=60; Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,...
来源: Laya_社区 发布时间: 20180131