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

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

251. GlowFilter和TimeLine/Tween一起用的问题 [ 75%]

...wfilter的demo改动过来的,执行以后没有效果 (function() { var Sprite     = Laya.Sprite; var Stage      = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture    = Laya.Texture; var Browser    = Laya.Browser; var Handler    = Laya.Handler; var WebGL      = Laya.WebGL;...

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

252. ClassUtils [ 75%]

...的链接 提交 1 个回复 wudi199553 赞同来自: ClassUtils.regClass("sp",Sprite); trace(ClassUtils.getClass("sp"));   2017-11-07 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Moeb 问题状态 最新活动: 2017-11-07 10:35 浏...

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

253. 关于大量图片加载绘制后的内存暴增的疑问 [ 75%]

...图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第80个头像的时候,内存显示稳定在29M 但是当添加第81个SPRITE头像的时候,内存...

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

254. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 74%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1...

来源: Laya2.0_文档 发布时间: 20210715

255. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 74%]

用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% import s3d = Laya.Sprite3D;   static s3ds:{[key:string]:s3d;} = {};   static news3d(id):s3d{ return x.s3ds[id].clone() as s3d;//s3d.instantiate(x.s3ds[id]); }   static loads3d(id, path, handler=null):void{   s3d.load(path, Laya....

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

256. 怎么获取手机相册内容 [ 74%]

...链接 提交 1 个回复 Laya_Aaron 赞同来自: package { import laya.display.Sprite; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1....

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

257. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 74%]

...l, function(tex) { //使用纹理 var earth1 = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))); earth1.transform.translate(new Laya.Vector3(10, 20, -8)); var earthMat = new Laya.BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.mesh...

来源: Laya2.0_文档 发布时间: 20210715

258. 移除容器里的所有子元素 [ 74%]

...请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: sp.removeChildren(); sp.destroy(true); 2017-05-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jweilan 相关问题 有什么容器能够实现当子元素达到...

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

259. 图集打包后使用Texture不显示啊 [ 74%]

... { "sg.png": { "frame": { "x": 0, "y": 0, "w": 300, "h": 300, "idx": 0 }, "spriteSourceSize": { "x": 0, "y": 0, "w": 300, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false, "trimed": true }, "sg2.png": { "frame": { "x": 302, "y": 0, "w": 290, "h": 300, "idx": 0 }, "spriteSourceSize"...

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

260. timeline的问题 [ 73%]

...以设置的 var timeline:Laya.TimeLine = new Laya.TimeLine(); timeline.to(sp, {x:500, y:500}, 3000, Laya.Ease.backIn, 0)         .to(sp, {x:0, y:0}, 3000, null, 0); timeline.play(0, false);   2017-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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