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

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

351. 鼠标交互-拖动 [ 61%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.loader.getRes(ApePath); ape.pivot...

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

352. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 61%]

... ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.addChild(new Laya.Scene3D());         //创建相机 ...

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

353. 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined [ 61%]

...行,请问怎么才能加载预制体,这个方法报错 Laya.loader.create,单独运行子域项目是没问题 177*****949 • 2018-11-08 20:25 @嘿哈 还没有解决吗 ? bingo • 2018-11-16 18:03 我也出现这个问题了,怎么解决呢 bingo • 2018-11-18 10:55 Laya.MiniAdpter.ini...

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

354. 鼠标交互-拖动 [ 61%]

....stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(ApePath, Handler.create(this, this.setup)); } setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath); Laya.stage.addChild(this.ap...

来源: Laya2.0_示例 发布时间: 20251219

355. 模型实时替换 [ 61%]

...码可以实现哦,你先把所有模型放一个数组里用Laya.loader.create先全部加载完成,在加载完成的回调里根据条件切换显示的模型就可以了 2019-07-12 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 1...

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

356. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 61%]

...Model/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, ...

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

357. 如何获取animation的node节点? [ 61%]

...Name+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options.srcName].frames[i].res].y, aniProps.res[aniProps.mc[options.srcName].frames[i].res].w, aniProps.res[aniProps.mc[opti...

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

358. list里的tweenTo(index)方法 为什么按下鼠标快速向某方向滑动的情况下想要显示的index单元格位置会有偏移,怎么控制单元格的位置 [ 61%]

...的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调用,翻到下一页,左右翻页按钮去调用没问题,位置都是正确的,只有在按下鼠标...

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

359. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 61%]

...所以不能在下一行代码立刻获取数据,推荐使用Laya.loader.create yinglei999 • 2017-11-17 19:10 1.数据都为零,需要获取的数据需要在资源加载的回调中进行 我不太明白,在Laya.MeshSprite3D.load 这个函数中只有一个参数是具体的地址 而通过...

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

360. 分享:List相关(Item增删功能) [ 61%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后初始化list数据 listP.add.on(Event.CLICK...

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