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

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

231. 性能测试-卡通人物2 [ 57%]

...createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = value; } C...

来源: Laya_示例 发布时间: 20260303

232. laya.display.Sprite.graphics对象的旋转问题 [ 57%]

...=new Sprite(); Laya.stage.addChild(sp); sp.graphics.drawLine(0,0,200,200,'#FF00000'); sp.pivot(0,0); Laya.timer.frameLoop(1,this,onTimer,[sp]); } private function onTimer(sp:Sprite):void { sp.rotation+=1; } 2017-04-24 0 0 分享 微博 QZONE 微信 wqt542434707 赞同来自: 谢谢~ 2017-04-24 0 0 ...

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

233. Graphics.drawLines设置x轴y轴的初始位置的参数失效 [ 57%]

...折线 sp.graphics.drawLines(100, 100, [0, 0, 39, 50, 78, 0, 120, 50], "#ff0000", 5); } })();   附件 : --> 2019-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LayaAir 赞同来自: 在2.0正式版已经...

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

234. drawToTexture截大图有问题,会丢失 [ 57%]

...=new Laya.Sprite();         this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null)     }     drawImg(e:Event=null):void{         var copySpr:L...

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

235. 关于 Laya.stage.bgColor 背景双色 ( 从浅到深 ) [ 57%]

... ctx.createLinearGradient(0, 0, 0, 170); my_gradient.addColorStop(1, "#0066ff"); my_gradient.addColorStop(0, "#ccffff"); ctx.fillStyle = my_gradient; ctx.fillRect(20, 20, 150, 100); 但是 要怎样才能 在 LAYA 上这么做呢   // 这个写法只能使用单色 Laya.stage.bgColor = "#fffff"  ...

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

236. graphics.drawlines异常 [ 57%]

... 406, 547, 408, 544, 408, 544];   canvas.graphics.drawLines(0, 0, path, "#ff0000", 10); } })(); 2018-12-30 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 异常指的是什么? 正常运行了没有报错 2019-01-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 ...

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

237. laya.display.cmd.DrawPathCmd_API3.0 [ 57%]

...rawPathCmd.ts:26 (可选)刷子定义,支持以下设置{fillStyle:"#FF0000"}。 paths paths: any[] | null Defined in laya/display/cmd/DrawPathCmd.ts:22 路径集合,路径支持以下格式:[["moveTo",x,y],["lineTo",x,y],["arcTo",x1,y1,x2,y2,r],["closePath"]]。 pen pen: any Defined in la...

来源: Laya3.0_api 发布时间: 20231115

238. laya.ui.Styles_API3.0 [ 57%]

...atic buttonLabelColors buttonLabelColors: any[] = ["#32556b", "#32cc6b", "#ff0000"] Defined in laya/ui/Styles.ts:39 按钮标签颜色。 格式:[upColor,overColor,downColor]。 Static buttonStateNum buttonStateNum: number = 3 Defined in laya/ui/Styles.ts:34 按钮皮肤的状态数,支持1,2,3...

来源: Laya3.0_api 发布时间: 20231115

239. 1.7.2版本在FlashDevelop编译flash问题 [ 57%]

...flash可以发布写了两行 Laya.init(800, 600); Laya.stage.bgColor = "#ff0000";    请帮忙看下 附件 : --> 2017-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 看下你的f...

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

240. 射线检测-点击行走 [ 57%]

...sh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollid...

来源: Laya_示例 发布时间: 20260303