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

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

261. 滤镜-发光滤镜 [ 75%]

...LL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this...

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

262. Sprite-显示图片 [ 75%]

... // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRes(monkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100, 0); })); } } new Sprite_DisplayImage();module laya { i...

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

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

...后回调 怎么获取当前触发鼠标点击的某个物体 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 问题状态 最新活动: 2017-10-24 16:10 浏览: 779 关注: 2 人

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

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

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

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

265. 官网二进制图片做法苹果系统失败 [ 75%]

...进制图片做法苹果系统失败 var url:String = Browser.window.URL.createObjectURL(blob);//创建一个url对象; var htmlImg:HTMLImage = HTMLImage.create(url);//这里创建HTMLImage 这里要用HTMLImage.create; htmlImg.onload = function():void { var t:Texture =new Texture(htmlImg); } ...

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

266. 3D模型加载出错 [ 75%]

...   //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));         Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite3D.load("res/layatest.lh",Laya.Handler.create(null...

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

267. 如何显示动画ani [ 75%]

...上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。   代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import ui.EffectAnimationDemoUI;  public class M...

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

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

...次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;              let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重复加载...

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

269. Pool 使用 Laya.Prefab [ 75%]

...ab public targetBox:Laya.Prefab; let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox); 运行报错: Cannot read property 'create' of undefined targetBox又在 control里面引用一个Prefab 2019-08-26 添加评论 免费帖 --> 分...

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

270. UI-ProgressBar [ 75%]

..../../res/ui/progressBar.png", "../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar....

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