大约有 727 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
...是正常的,只能来这里请教了 switch (key) { case 'E': frameX = sprite.pivotX * 2; frameY = sprite.pivotY; frameRotation = 0; frame.scaleX = 1; frame.scaleY = 1; break; case 'Q': frameX = sprite.pivotX * 2; frameY = sprite.pivotY; frameRotation = 180; frame.scaleX = 1; frame.scaleY = 1; br...
来源: Laya_社区 发布时间: 20190723
...题 看LayaAir.d.ts里的注释代码如下: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 * * htmlCanvas.toBase64("image/png",0.92,function(base64) * trace(base64); 这个时候输出的base64不对,但是如果放到...
来源: Laya_社区 发布时间: 20181130
...会出现极小的情况 可以使用 drawToCanvas从游戏中截屏当前sprite 的绘制 let new_texture = sprite.drawToCanvas(width, height, 0, 0) 这里的 width 和height 指的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0) 重新获取纹...
来源: Laya_社区 发布时间: 20180531
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? ios14系统下 blendMode='lighter' ...
来源: Laya_社区 发布时间: 20180718
...获取图集下的小图资源? Layabox如何实现本地存储 new Laya.Sprite();绘制图形以后,怎么删除释放资源? LayaAir下TTF字体的使用方式? 模型资源释放问题 问题状态 最新活动: 2018-08-10 10:41 浏览: 856 关注: 2 人 也许灬 • 2018-08-03 11:58 上...
来源: Laya_社区 发布时间: 20180803
...url对象;////我们先用第一种方式显示图片到舞台;var sp:Sprite = new Sprite();sp.loadImage(url);Laya.stage.addChild(sp);//添加到舞台 第2行代码,为什么是从第4个字节开始读取呢? 我尝试了下,发现这段代码无法成功创建sprite。而我改为...
来源: Laya_社区 发布时间: 20180620
drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...
来源: Laya_社区 发布时间: 20180113
.../plane.png"; private plane2:string = "res/untitled.png"; private img: Laya.Sprite; private flag: boolean = false; constructor() { Laya.init(1000,800); this.img = new Laya.Sprite; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2...
来源: Laya_社区 发布时间: 20180406
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? Laya mac版的IDE 是没测试就上...
来源: Laya_社区 发布时间: 20180713
...在最底部显示? Animation如何加点击事件 关于遍历产生的sprite的点击事件,急,大神帮看哈 关于发布oppo、vivo快游戏,无法生成Rpk问题 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时...
来源: Laya_社区 发布时间: 20180724