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

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

911. Browser.context.createLinerGradient绘制之后不生效,是因为现在不支持颜色渐变吗? [ 55%]

...w, bh); gra.addColorStop(0, '#ffaaaa'); gra.addColorStop(1, '#ffffff'); sp.graphics.drawRect(0, 0, 200, 200, gra); Laya.stage.addChild(sp);创建颜色渐变的代码如上,是我的书写有问题还是现在就是没支持渐变 2018-04-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

912. 最近经常问问题,看论坛顺便吐一下槽 [ 55%]

...于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 graphics alpha 问题 问题状态 最新活动: 2018-01-30 15:31 浏览: 659 关注: 2 人 liwenhua • 2018-01-30 15:37 不只是这啊,有时候,我自己问的问题,回答的也有很多不准确,最后好的都...

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

913. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 55%]

...vate createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff); this.addChild(panel); let box:laya.physics.BoxCollider = panel.addComponent(laya.physics.BoxCollider); box.height = 20; box.width = 100; let rigid:Laya.RigidBody = panel.addComponent(...

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

914. TypeError: Cannot read property 'on' of null [ 55%]

...peError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.MovieClip is not...

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

915. 请问怎么在按钮点击的时候增加一层遮罩蒙版? [ 55%]

...27 那你只能自己封装一个跟button的组件了,把button跟一个graphics遮罩对象放到一个容器里,这样就可以实现你的需求了

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

916. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 55%]

...到这个页面所在的位置,在此设置设置一个背景色 bgPage.graphics.drawRect(0,0,300,300,"#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage:MonkeyPageUI = new MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置...

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

917. laya2.3 物理系统 怎么获取两个Box的碰撞点 [ 55%]

...是碰撞点 图就是再碰撞了通过localToGlobal转了之后用sprite.graphics画出来碰撞点位置。   附件 : --> 2019-12-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 这...

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

918. 关于内置git工具的问题,当我切换到非master分支时,pull按钮就失效了 [ 55%]

...建和发布项目 关于适配采用showAll后留白部分的颜色问题 graphics alpha 问题 我这样载入场景问题出现在哪呢?? List滑动条会引起单元格上的按钮点击后多次触发点击事件 问题状态 最新活动: 2017-05-18 14:18 浏览: 1584 关注: 2 人

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

919. 关于js继承类class的参数问题 [ 55%]

...    Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         label.text = "100000";//设置 label 的文本内容...

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

920. 骨骼动画销毁后再创建,报错 [ 55%]

...extureWithTransform ._drawTextureWithTransform __proto._renderAll __proto._graphics __proto._transform __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.render __proto._childs __proto.ren...

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