大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0117 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
... : (图2-2) js目录 与 libs目录: 项目代码和引擎库。 resources目录 与 Scene.ls: resources资源目录和场景文件Scene.ls,小游戏由于初始包的限制,建议将初始包的内容在规划好,最好能放到统一的目录下,便于初始包的剥离。 game.j...
来源: Laya3.0_文档 发布时间: 20251010
...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
... 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
...一在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
...自动生成3d资源释放列表的json文件 /** * @description 用于将resource转换成json格式 * * @param filePath //目标路径 默认为/(当前目录) * @param outPath //生成的json文件存放目录 默认为/(当前目录) * * @example node res2json * @example node res2json /user/work...
来源: Laya_社区 发布时间: 20180126
...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
...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
...动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了ETC1不支...
来源: Laya2.0_文档 发布时间: 20210714
... 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
...光滑度贴图。 `normalTexture:BaseTexture` 法线贴图。 `normalTextureScale:Number` 法线贴图缩放系数。 `occlusionTexture:BaseTexture` 遮挡贴图。 `occlusionTextureStrength:Number` 遮挡贴图强度。 `parallaxTexture:BaseTexture` 视差贴图。 `parallaxTextureScale:Number` ...
来源: Laya2.0_文档 发布时间: 20210714