大约有 235 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(149) Laya2.0_文档(47) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(7) Laya3.0_api(2) Laya2.0_api(2)
... node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D); //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试: addChild(nod...
来源: Laya_社区 发布时间: 20191203
...dByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasListener load loadPackage off offAll offAllCaller on once cacheRes clearRes clearResByGroup createNodes getAtlas getBaseTexture getRes getTexture2D registerLoader setGroup warn Constructors constructor new Loader():...
来源: Laya3.0_api 发布时间: 20231115
... var originalApe: Sprite = this.createApe(); this.apeTexture = Laya.loader.getRes(this.ApePath); originalApe.x = (Laya.stage.width - this.apeTexture.width * 3) / 2; originalApe.y = (Laya.stage.height - this.apeTexture.height) / 2; } private makeRedApe(): void { //由 20 个项目(排列成 4 x 5 ...
来源: Laya2.0_文档 发布时间: 20210715
...te(this, () => { let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh"); let tarItem = Laya.Sprite3D.instantiate(item); this.scene.addChild(tarItem); tarItem....
来源: Laya_社区 发布时间: 20191102
...{ ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - texture.width) / 2; ape.y = (Laya.stage.height - texture.height) / 2; Laya.stage.addChild(ape); } function applayFilter() { //创建一个发光滤镜 //var glowFilter = new ...
来源: Laya_社区 发布时间: 20181012
...享 微博 QZONE 微信 liwenhua 赞同来自: this.linkJson = Laya.loader.getRes('res/json/linkUrl.json');这样读取出来不就是就对象了吗,怎么设置编码格式啊??不会啊!!!我都是这样引用,然后直接this.linkJson.XXX进行读取的,如果数值都都是for...
来源: Laya_社区 发布时间: 20180115
...omplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this.role); //角色位置 this.role.transform.position = new Laya.Vector3(0,1,2); } } new LayaAir3D(); 但发布到微信工具运行失败,提示错误如下:...
来源: Laya_社区 发布时间: 20180307
...ectComplete():void{ var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh"); this.compileShader(effect); //===========放心使用吧================= var myeffect:Laya.Sprite3D = effect.clone(); } ...
来源: Laya_社区 发布时间: 20190404
...t(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3D.creat...
来源: Laya_社区 发布时间: 20170505
...s clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off offAll offAllCaller on once setGroup Constructors constructor new LoaderManager(): LoaderManager Defined in laya/net/LoaderManager.ts:72 创建一个新的 LoaderManager 实例。 注意:请使...
来源: Laya3.0_api 发布时间: 20231102