大约有 594 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
...; //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...
来源: Laya_社区 发布时间: 20161230
...导致相同url的骨骼动画直接就清理掉了, 那如果我要预加载的话,按这么这么做必须分成2个部分,加载url资源以及生成模板,之后再创建骨骼动画,因为加载资源是异步的,我有很多骨骼需要同时预加载,那么如果有同样url的...
来源: Laya_社区 发布时间: 20170913
...问题 用二的幂次方图集和非二的幂次方图集区别在哪? 加载到舞台的3D模型不显示贴图 unity中的模型导出后在laya中显示不正常 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 一个3D正方...
来源: Laya_社区 发布时间: 20190130
...; //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ; //加载纹理 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2;...
来源: Laya2.0_文档 发布时间: 20210714
...r = 0, width:Number = 0, height:Number = 0, complete:Function = null):void 加载并显示一个图片。 Graphics restore():void 返回之前保存过的路径状态和属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):void 旋转当前绘图。(推荐使用transfor...
来源: laya_api 发布时间: 20170929