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

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

941. 模型资源异步加载和预加载 [ 55%]

...预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh"); this.scene.addCh...

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

942. load 粒子的时候永远出错 [ 55%]

... res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya.Loader.JSON);   我再bin/res/rotate.part是存在的 2018-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

943. Image 动态替换图片后变小了 [ 55%]

...url:"map/157.jpg", type:Loader.IMAGE});      Laya.loader.load(assets, Handler.create(this, loadMapBGComplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test.source = tx;      }  我这张图是913X1400...

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

944. 怎么将图片转换成base64格式 [ 55%]

...64格式 如题。一直转换没成功。 Laya.loader.load("hall/111.png",Handler.create(this,function():void { var img:Texture = Laya.loader.getRes("hall/111.png"); var encode:String = Base64ImageTool.getBase64Pic(img); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

945. 缓动动画运行一段时间后失效 [ 55%]

...             Laya.Ease.bounceOut,             Laya.Handler.create(this, this.beUpgrade)         );}使用上面代码对龙骨每2000毫秒做scale缓动动画,挂机一段时间,动画没反应了,龙骨是scale之后的状态。 2020-07-16 添加评论 免费...

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

946. 提示 is not function [ 55%]

...可以赋值的方法后面增加上".bind(this)",或者回调方法用Handler.create(this,你的回调方法)。两种方法都可以解决你的问题! 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 orecle 相关问题 T...

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

947. ui.TestPUI() 找不到 [ 55%]

....bgColor = "#ffffff"; Laya.loader.load("./res/atlas/blackMagic.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操作的。     2019-04-24 添...

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

948. 创建材质(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 55%]

...new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this, function(tex){ //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ``` ![](img/1.png)(图1) 当然,这只是简单...

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

949. ios11, TimeLine在锁屏的情况下complete和label回调没有触发 [ 55%]

...击的某个物体 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 问题状态 最新活动: 2017-10-24 16:10 浏览: 779 关注: 2 人

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

950. 微信小游戏,动态加载资源很慢 [ 55%]

..."./LayaScene_111/Conventional/smoke.lh"];  Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是很慢,好久才进入到c...

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