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

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

41. TimeLineUI不存在的问题 [ 80%]

...执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变...

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

42. 资源加载的Loadcreate有什么区别? [ 80%]

...ionObject' of undefined 请问下加载TFF字体要怎么加载呢? Laya.Handler.createnew Laya.Handler有啥区别 请问一下怎样动态加载prefab laya怎么跨域加载图片 unity到导出场景加载时抛异常,不知所措 Animation 的createFrames 使用已经加载的图集缓存...

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

43. list 数据不会及时渲染 [ 79%]

...}                                  cardList.renderHandler = new Handler(this, renderHandler, [cardList]); //                popArr = cardArr.pop();                 if(index%2){                     cardList.itemRender = roleCardUI;    ...

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

44. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 79%]

...mport laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.p...

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

45. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 78%]

...回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 L...

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

46. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 78%]

...ya.net.LoaderManager中的load()方法getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示: ![图3](img/3.png) (图3) ![图4](img/4.png) (图4) ![图2](img/5.png) (图5) ![图2](img/6.png) (图6) ### 2.2 用drawTexture 加载显示图...

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

47. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 78%]

.../Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Laya.Handler....

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

48. U3D导出两个相同的特效。有一个不显示 [ 77%]

...createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); onEffectOK() : void{ this._createSprite3D -= 1; if(this....

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

49. 为什么不能加载多个模型 [ 77%]

...er.create("LayaScene_layabox/Library/unity default resources-Quad.lm",Laya.Handler.create(this,this.onCreateComplete)); Laya.loader.create("LayaScene_layabox/Library/unity default resources-Capsule.lm",Laya.Handler.create(this,this.onCreateComplete)); private onCreateComplete():void { var mesh:Laya....

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

50. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 76%]

...is.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(this.urls,this.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new L...

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