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

大约有 225 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0041 秒)

1. Laya.loader.load 如何预加载模型 sprite3d,文档里没有找到呢 [ 100%]

Laya.loader.load 如何预加载模型 sprite3d,文档里没有找到呢 2017-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 加载3D资源参考下这个文档:https...

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

2. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 96%]

怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 角色,放几个技能后内存从 60 M 长到 90M,清理后,内存没下降。   清理方法            override public function destroy(destroyChild:Boolean = true):void {             if...

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

3. 模型资源异步加载和预加载 [ 95%]

...就会忘掉 在这里分享出来以后好搜索 //直接异步加载 var sprite3D:Laya.Sprite3D = Laya.Sprite3D.load("res/room.lh");   //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 pr...

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

4. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 95%]

....create(null, function(tex:Texture2D):void { //使用纹理 var earth1:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))) as MeshSprite3D; earth1.transform.translate(new Vector3(10, 20, -8)); var earthMat:BlinnPhongMaterial = new BlinnPhongMaterial(); earthMat.alb...

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

5. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 95%]

LayaAir引擎 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;          ...

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

6. Laya.Sprite3D.load机制bug [ 95%]

Laya.Sprite3D.load机制bug 使用Laya.Sprite3D.load加载3d资源,如果第二次加载同一个资源(第一次加载的资源被系统回收),获取到的资源是被销毁状态! 重现几率为必现 Laya.Sprite3D.load(name, Laya.Handler.create(this, (data:Laya.Sprite3D)=>{ if(dat...

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

7. 3D粒子特效初始化卡顿 [ 94%]

...下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play();   这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在IDE的layaair调试器中也很明...

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

8. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 92%]

# Sprite3D的克隆 ###### *version :2.0.1beta Update:2019-4-13* 关于克隆,LayaAir3D中提供了几种接口。比较常用的`clone`和`cloneto`这两种通用的方法就不多做介绍了。这里详细讲解下Sprite3D中特有的克隆接口`instantiate`。 ```typescript public function st...

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

9. Sprite3D的克隆(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 92%]

# Sprite3D的克隆 ###### *version :2.0.1beta Update:2019-4-13* 关于克隆,LayaAir3D中提供了几种接口。比较常用的`clone`和`cloneto`这两种通用的方法就不多做介绍了。这里详细讲解下Sprite3D中特有的克隆接口`instantiate`。 ```typescript static instantiate...

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

10. Sprite3D-Sprite3D克隆 [ 92%]

...onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite3d var layaMo...

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