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

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

811. 如何实现渐变填充对象呀? [ 55%]

...Rect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图的渐变对象 我找不到关于这个渐变对象的文档,例子或者教程 2018-09-04 ...

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

812. 分包后, 资源加载问题 [ 55%]

...gjzaUI.uiView); } loadingjzaUI.uiView={"type":"View","props":{"width":192,"height":269},"compId":1,"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"loading/dt_jza_loadtuan_zj.png"}},{"type":"Box","props":{"y":0,"x":0},"child":[{"type":"Image","props":{"y":0,"x":0,"width":192,"skin":"loading/dt_...

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

813. sprite添加texture后,sprite无法触发点击事件? [ 55%]

...aaron • 2017-08-26 17:23 利用getBounds获取的时候发现sprite是有height和width的,为什么还要设置size呢?

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

814. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 55%]

...m y 开始绘制的 Y 轴位置。 * @param width 矩形宽度。 * @param height 矩形高度。 * @param fillColor 填充颜色,或者填充绘图的渐变对象。 * @param lineColor (可选)边框颜色,或者填充绘图的渐变对象。 * @param lineWidth (可选)边框宽度。 *...

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

815. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 55%]

...的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

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

816. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 55%]

....TextFormat;     import flash.utils.Timer;       [SWF(width = "1000", height = "618", backgroundColor = "0x0", frameRate = "30")]       public class iLoader extends Sprite     {         public static var PATH:String = "";           public static var VCM:Function;           pu...

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

817. List 组件做的手风琴Demo [ 55%]

...         if(this.index_num ==index){             cell.height=80;             cell.y =index*30;             //显示图片          img2.visible =true;           }else         {         // 大于点击索引时 所有的Box...

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

818. 我有元素是始终定位底部的,旋屏后就不准了,有什么好方法吗? [ 55%]

...于 position: absolute; bottom: 0的方案吗?   现在是用Laya.stage.height - 元素高度,但这样旋屏后定位就错了。 2017-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来...

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

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

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

820. 透明背景在2.12.2以后的版本失效 [ 55%]

...onfig3D(); config.isAlpha = true; Laya3D.init(GameConfig.width, GameConfig.height, config); Laya.stage.bgColor = null;   在2.12.2和之前的版本这么写可以隐藏背景 然后实现背景加载高德或者百度地图 2.13.0和2.13.1beta就彻底没用了 彻底无法隐藏了   随便新...

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