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

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

1051. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 46%]

...ayabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){ var url = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取...

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

1052. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 46%]

...new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material;  let res1 = Laya.Sprite3D.instantiate(box); let res2 = Lay...

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

1053. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 46%]

...ultFont = "36px Arial";     Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); }   private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf");   if(arr && Browser.window.conch) { Browser.window.conc...

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

1054. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 46%]

...件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D...

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

1055. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 46%]

...Info.onLoaded (http://127.0.0.1:59022/game/code.js:12995:61)     at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:711:59)     at ResInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:131...

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

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

...ng'; 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 button = new Laya.Button(sk...

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

1057. 请教下微信小游戏的内存和数据缓存? [ 46%]

...ading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 我使用这种方法加载图集,加载完就800m,所以就一直在找优化方法,在app端没有这么高 zwy363 • 2018-01-22 10:58 那如果不行,只能不要一次加载...

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

1058. 滤镜的集中实现 [ 46%]

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

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

1059. Cannot read property 'load' of null [ 46%]

...p/28.jpg", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index...

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

1060. Cannot read property 'rayCast' of undefined [ 45%]

...ite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameL...

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