大约有 771 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0105 秒)
Sprite的destroy destroyChildren() { if (this._children) { for (var i = 0, n = this._children.length; i < n; i++) { this._children[0].destroy(true); } } 这几行代码来自laya.core.js的12544行开始的,for循环里的this._children[0]是不是应该是this._children[i]?还是我的使用...
来源: Laya_社区 发布时间: 20200421
...tyPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale TS项目使用matter.js库无智能提示 LayaAirIDE下如何使用mask? 微信小游戏如何使用ttf字体? 微信小游戏:HTMLDivElement...
来源: Laya_社区 发布时间: 20171025
...ebgl.WebGL; import laya.utils.Handler; import laya.display.Sprite; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640,Web...
来源: Laya_社区 发布时间: 20190110
... 图片异常 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? 关于同为object层,层级设置无效的问题 Laya3D里的material可以设置flat shading么 请问有人遇到oppo小游戏字体显示异常 1.7.20beta有bug,帧属性面板打不...
来源: Laya_社区 发布时间: 20200117
...: Error processing launch: Error Could not attach to main target Image和Sprite在应用上的区别 Laya3D init error, must support webgl有个WIN10的电脑,系统是正版,家庭版的,跳到编辑模式就显示这个 IDE不能运行调试提示:Chrome error: Error:... EffectAnimation ...
来源: Laya_社区 发布时间: 20180327
...aleMode = 'fixedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10图片是正方形的 如上设置过pivot之后 并没有按 正方形中心点旋转 2018-05-19...
来源: Laya_社区 发布时间: 20180519
...mageNode:Laya.Image = this.getChildByName("waken") as Laya.Image; var imageSprite:Laya.Sprite; var uint8Array:Uint8Array = imageNode.source.bitmap.getPixels(); //console.log("0000000000000 == " + uint8Array.length); imageNode.source.bitmap.setPixels(uint8Array,0); 附件 : --> 2019-09-23 3 条评...
来源: Laya_社区 发布时间: 20190923
...rt flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; public class UrlImage extends Sprite { private var urlLoader:URLL...
来源: Laya_社区 发布时间: 20151228
如果更换Sprite图片 statusBar = new Sprite(); statusBar.loadImage("7seedkin220161218094632691ru.png@120w.png",0,0, 60,60); statusBar.x = 20; statusBar.y = -70; this.addChild(statusBar); 如何通过动态事件更换Sprite图片? 2017-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170112
...eader(); reader.readAsDataURL(imgBlob); reader.onload = (e)=> { let sp1:Sprite = new Sprite(); //加载Base64图片数据 sp1.loadImage(e.target.result as string); this.owner.addChild(sp1); } }); 上述代码中,用 Laya.loader.fetch 加载图片二进制数据,根据自定义的规则,可...
来源: Laya3.0_文档 发布时间: 20230303