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

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

271. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

... : (图2-2) js目录 与 libs目录: 项目代码和引擎库。 resources目录 与 Scene.ls: resources资源目录和场景文件Scene.ls,小游戏由于初始包的限制,建议将初始包的内容在规划好,最好能放到统一的目录下,便于初始包的剥离。 game.j...

来源: Laya3.0_文档 发布时间: 20251010

272. 富文本使用图集 [ 79%]

...ndefined class: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appendHtml:HTMLDivElement=new HTMLDivElement();             a...

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

273. 关于Pivot和Mask联合使用时的显示问题再次提交 [ 79%]

...   Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg);      ...

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

274. loadAnimation无法获取动画文件 [ 79%]

...一在GameAni.ani内制作   private var aniArr:Array = [         "res/atlas/role/hero.atlas",         "res/atlas/role/monster/monsterA/die.atlas",         "res/atlas/role/monster/monsterA/move.atlas"         ];   Laya.loader.load(aniArr, Handler.create(this, onAni), null, ...

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

275. 分享一个node脚本用于自动生成3d资源释放列表的json文件 [ 79%]

...自动生成3d资源释放列表的json文件 /** * @description 用于将resource转换成json格式 * * @param filePath //目标路径 默认为/(当前目录) * @param outPath //生成的json文件存放目录 默认为/(当前目录) * * @example node res2json * @example node res2json /user/work...

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

276. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 79%]

...escript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this.sphere.mes...

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

277. Laya.loader.load 教程代码出错 [ 79%]

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

278. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 79%]

...动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了ETC1不支...

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

279. wx.canvasToTempFilePath在TS下如何使用啊? [ 79%]

... destWidth: 100, destHeight: 100, canvasId: 'myCanvas', success: function (res) { wxd.shareUrl = res.tempFilePath wxd.ShareAppMessage() console.log(res.tempFilePath) } }) 一直报错[ts] The 'this' context of type 'typeof wx' is not assignable to method's 'this' of type 'string'. canvasId也是我...

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

280. PBRStandardMaterial材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 79%]

...光滑度贴图。 `normalTexture:BaseTexture` 法线贴图。 `normalTextureScale:Number` 法线贴图缩放系数。 `occlusionTexture:BaseTexture` 遮挡贴图。 `occlusionTextureStrength:Number` 遮挡贴图强度。 `parallaxTexture:BaseTexture` 视差贴图。 `parallaxTextureScale:Number` ...

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