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

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

1041. 材质-BlinnPhong-高光贴图 [ 62%]

..., 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.positi...

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

1042. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 62%]

...加载成功,但是加载外部图片就不行,没有任何反应 Laya.loader.load(["https://xxdzz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handl...

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

1043. 材质-BlinnPhong-法线贴图 [ 62%]

...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...

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

1044. 无法触发浏览器文件上传框 [ 62%]

...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

1045. 加载TiledMap 不显示 [ 62%]

...{     //  this.tiledMap = new TiledMap();     //  // Laya.loader.create(["res/tiledMap/t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () =>     //  // {     //      this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya....

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

1046. 滤镜的集中实现 [ 62%]

...; //设置舞台背景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/...

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

1047. layaAir TS项目如何引用protoBuf库? [ 62%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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

1048. Cannot read property 'load' of null [ 62%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

1049. image loadimage 加载网络图片BUG [ 62%]

...才可以。 比如果在你的资源前加这样一句; var s:Sprite = Loader.getRes("路径"); if (s) { Loader.clearRes("路径"); s.destroy(); } 或者最好用的是再你的资源后加版本管理,版本管理你可以去官网看一下相关的文档。 付俊峰 • 2...

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

1050. LayaAir下分离模式的使用 [ 62%]

... 微信 155*****583 赞同来自: 还有分离模式下, this.createView(Loader.getRes("../test/TestPage.json"))只能放在对应的 ui 类里面加吗,这样每次导出不就覆盖了,很不方便啊 2018-01-30 0 1 分享 微博 QZONE 微信 HennoLuo 赞同来自: @xcling的问题: 1. 在...

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