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

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

231. 射线检测-碰撞器混合 [ 74%]

...odel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 t...

来源: Laya_示例 发布时间: 20251130

232. 材质-BlinnPhong-反射贴图 [ 74%]

...yBox; import laya.display.Stage; import laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import laya.utils.Stat; public class BlinnPhong_ReflectMap { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function BlinnPhong_ReflectMap() { Laya3D.init(0, 0, true); Laya.s...

来源: Laya_示例 发布时间: 20251130

233. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 74%]

...载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> ...

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

234. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 74%]

...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...

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

235. 富文本使用图集 [ 74%]

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

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

236. 3d导入粒子效果报错 [ 73%]

...ite3D = Laya.Sprite3D.load("res/partical1/sceneFXMaker.lh"); 报错 Error: LoaderManager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:1...

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

237. ani时间轴动画问题 [ 73%]

ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台   ...

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

238. 人物行走图动画 [ 73%]

...从第二张图片(迈出左脚的那张图片)开始的。   还有Loader.ATLAS是static] 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPat...

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

239. 鼠标交互-Hold [ 73%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...

来源: Laya_示例 发布时间: 20251130

240. Animation创建和销毁的问题 [ 73%]

...同样的代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后...

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