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

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

181. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 74%]

...Laya.Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Laya.Handler.create(this, function(scene:Laya.Scene3D):void { this._scene = Laya.stage.addChildAt(scene, 0) as Laya.Scene3D; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new ...

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

182. 求助高手请进,关于场景导入的问题~ [ 74%]

...这样就能加载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我...

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

183. 照着官方文档写的 Dialog 报错? [ 74%]

...ad(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadData(); }; LoadResource.prototype.initLoadData = function () { var res_array = [ {url:"res/ui/dialog.png",type:Laya.L...

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

184. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 74%]

...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMa...

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

185. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 74%]

...w BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //...

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

186. 微信小游戏图片加载不出来 [ 74%]

...s/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张...

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

187. Laya.loader.load 教程代码出错 [ 74%]

...isplay.Text;     import laya.display.Sprite;     import laya.utils.Handler;     import laya.resource.Texture;     public class LayaSample {         private var img:Sprite ;         private var index:int ;         public function LayaSample() {         ...

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

188. 加载的时候动画会卡 [ 74%]

.../atlas/cont.json",type:Loader.ATLAS});         Laya.loader.load(imgArr,Handler.create(this,onAssetLoaded),Handler.create(this,onProgress,null,false));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUS...

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

189. 关于Laya.loader.load和getRes的问题 [ 74%]

...2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); ...

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

190. UI-FontClip [ 74%]

...ALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClip...

来源: Laya2.0_示例 发布时间: 20251130