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

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

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

...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

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

...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

1083. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 45%]

...rls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } cons...

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

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

...件由发布功能生成 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

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

...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

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

...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

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

...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

1088. Cannot read property 'load' of null [ 45%]

...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

1089. 滤镜的集中实现 [ 45%]

...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

1090. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 45%]

... Laya.Sprite3D.load("h5/LayaScene_car/Conventional/car.lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 201...

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