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

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

241. 屏幕适配-屏幕适配 [ 63%]

...); txt.text = "点击我切换适配模式(noscale)"; txt.bold = true; txt.pos(0, 200); txt.fontSize = 30; txt.on("click", this, onTxtClick); Laya.stage.addChild(txt); //实例一个小人,放到右上角,并相对布局 var boy1 = new Image(); boy1.skin = "../../res/cartoonCharacters/1.png"; bo...

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

242. 动画-新版骨骼动画 [ 63%]

...cale(Laya.Browser.pixelRatio, Laya.Browser.pixelRatio); changeActionButton.pos(Laya.stage.width / 2 - changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { //根据名称播放动画 zom...

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

243. 报告bug: graphics.drawCircle在layaair调试时,改变外框尺寸,半径未能自适应调整 [ 63%]

...tage.addChild(sp); //将sp移动到横坐标400,纵坐标300的位置 sp.pos(400,300); //绘制两条在sp的原点交叉的直线 sp.graphics.drawLine(-50,0,50,0,'#00ff00',1); sp.graphics.drawLine(0,-50,0,50,'#00ff00',1); //绘制以sp的原点为中心,半径40的圆 sp.graphics.drawCircle(0,0...

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

244. 屏幕适配-屏幕适配 [ 63%]

...t = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); this.txt.fontSize = 30; this.txt.on("click", this, this.onTxtClick); Laya.stage.addChild(this.txt); //实例一个小人,放到右上角,并相对布局 let boy1 = new Image(); boy1.skin = "res/cartoonCharact...

来源: Laya2.0_示例 发布时间: 20251130

245. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 63%]

...interactionArea.graphics.clear(); this.interactionArea.graphics.drawCircle(pos.x+target.width*scale*0.5, pos.y+target.height*scale*0.5, step.radius * scale, "#000000"); 附件 : --> 2017-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

246. laya.ui.ColorPicker [ 63%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

247. laya.ui.CheckBox [ 62%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170929

248. ScrollRect设置会引起其他的UI资源无法正在显示 [ 62%]

...:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footp...

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

249. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 62%]

...            txt.strokeColor = "#ffffff";             txt.pos(60, 100);             Laya.stage.bgColor = "#ffff00";             Laya.stage.addChild(txt);         }     } } 2017-10-25 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: LayaAi...

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

250. laya.ui.Image [ 62%]

...hildren():void 销毁所有子对象,不销毁自己本身。 Node  dispose():void 销毁对象并释放加载的皮肤资源。 Image drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas 绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas...

来源: laya_api 发布时间: 20170929