大约有 264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...的text与label组件在vivo小游戏引擎1105及以下文字显示异常 graphics drawPath drawLine 鼠标 画笔 画线 锯齿 问题状态 最新活动: 2025-01-22 16:20 浏览: 7183 关注: 3 人
来源: Laya_社区 发布时间: 20250122
...testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tmpMask.graphics.clear(); tmpMask.graphic...
来源: Laya_社区 发布时间: 20200421
...options.srcName].frames[i].res].h, ); // 从大切片切出小切片 skill.graphics.drawTexture(textureIns,aniProps.mc[options.srcName].frames[i].x,aniProps.mc[options.srcName].frames[i].y); // 将小切片渲染到临时精灵上 skillAniArray[i] = skill._graphics._one; // 储存渲染后的小切...
来源: Laya_社区 发布时间: 20190215
...,却无法显示图片, 使用loadIMage可以显示图片,但使用graphics.drawTexture()却无法显示图片(图片已经预加载了),求解,是最新的layaair引擎不支持graphics.drawTexture()的方法了? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170117
...帧动画这里看了下源码实现,需要每帧动画都设置不同的graphics,每个graphics里保存了每帧图片贴图,这里为什么不是公用大贴图,修改渲染uv来实现啊? 公用贴图不是在最终渲染的时候 好合并渲染批次吗? 2017-06-29 添加评论 免...
来源: Laya_社区 发布时间: 20170629
...x.toString() +".bmp"; img.graphics.clear(); var txture:Texture = Laya.loader.getRes(url); img.graphics.drawTexture(txture); img.size(txture.width,txture.height); }...
来源: Laya_社区 发布时间: 20170918
...回复被折叠 要回复问题请先登录 发起人 vincent 相关问题 graphics绘制扇形,角度设置一定数值时候,遮罩形状不对 Vsilder 旋转180%后 数值 方向不能改变吗,还有滑动的方向也是反的 通过面部骨骼缩放来实现变脸,引擎怎么设置某...
来源: Laya_社区 发布时间: 20170410
...tralRect(); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); var rect1 = new Sprite(); rect1.graphics.drawRect(Laya.stage.width / 3 * 2 , Laya.stage.height / 3 * 2 - 65, 100, 100, "blue"); // rect1.graphics.dra...
来源: Laya_社区 发布时间: 20170206
...ader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人物的位置 this.bg.y = -32; this.addChild(this.bg); } this.bg.graphics.drawTexture(this.bgTexture, 0, 0, 960, 96); //创建一个帧循环处理函...
来源: Laya_社区 发布时间: 20160728
...t: Texture = Laya.loader.getRes("load/0.png"); this.darwSprite.graphics.drawTexture(t,0,0); this.darwSprite.graphics.drawTexture(t,176,0); this.darwSprite.graphics.drawTexture(t,176*2,0); 采用这方式在sprite内部绘制了3个一样的png,每一个宽度...
来源: Laya_社区 发布时间: 20160718