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

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

521. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 64%]

...一覺盜兲喨 赞同来自: 这里的按钮,可以用   this.btn.clickHandler = laya.utils.Handler.create(this,this.方法,["你要传的参数"],false); 2018-08-28 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Try everything___ ...

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

522. 不存在的资源路径问题 [ 64%]

...der.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 this.onLibLoaded 这个,这种怎么跟呢?谢谢。 zeorro • 2017-11-02 17:13 private onLibLoaded():void { CommonLocator.parseJsonF...

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

523. LayaAir1.7.19.1 Beta预加载资源出问题 [ 64%]

...经这样试过,还是加载失败了。 Laya.loader.create(urls, Laya.Handler.create(this, onComplete, [urls]), null, Laya.Scene); 跟Sprite3D有区别吗 188*****949 • 2018-07-26 11:31 这个问题还挺难搞的,因为只在我打包到远端加载的时候才会出问题,本地加载是o...

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

524. UI界面加载有哪些回调方法可用 [ 64%]

...用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布...

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

525. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 64%]

...threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScrip...

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

526. animate 动画播放 怎么把攻击 开火 合起来播放 [ 64%]

...调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.cr...

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

527. 如何加载.lh文件 [ 64%]

...名字.lh"}, {url:"同上.lh"},  {url:"同上"},  {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 灬倪先森_ 相关问题 2.0一不小心删了bin目录下的某个场...

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

528. Tiled Map 为啥始终显示在最上面,求解 [ 64%]

...tMap.createMap("res/TiledMap/orthogonal-test-movelayer.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); this.tMap.scale = 1;   var ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.loadImage("res/lhg.png"); ape.pos(0, 0);     2018-05-14 添加评论 免费帖 --> 分享 微博 QZO...

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

529. Tween下的动画速度如何改变? [ 64%]

... Tween.to(pan,{ rotation: -(720+angle) },5000,Ease.bounceOut(0,0,0,5000),Handler.create(this,function():void{ alert(text); })); } 如以上代码 :我用在5000后面加Ease但这个类的后边全是Number 会报错 求解这个东西应该咋用 2018-06-13 添加评论 免费帖 --> 分享 微...

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

530. 动画-旧版骨骼动画 [ 64%]

...UI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeA...

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