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

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

991. 关于遍历产生的sprite的点击事件,急,大神帮看哈 [ 66%]

...for遍历下对sp进行CLICK的监听即可,sp.size(xxx,xxx);sp.on(Event.CLICK,this,onSpClick) 3、点击sp时,直接获取sp.index值即可(e.target.index)! 2017-02-21 1 0 分享 微博 QZONE 微信 lift6220819 赞同来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya....

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

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

...this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); }   //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

993. 3D中的Animator如何从指定的某一帧开始播放动画 [ 66%]

...); animator.addClip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,...

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

994. 绘制形状时事件不触发 [ 66%]

...e.graphics.drawCircle(x, y, r1, color1, color1, 0);     function on_down(event) {         console.log("_____ kbRing2\n");     } } function laya_test() {     Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL);     var ring = new myRing(600, 300, 18, "#087729", 40,...

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

995. laya.d3.core.pixelLine.PixelLineSprite3D [ 66%]

...s | Index | Frames No Frames PixelLineSprite3DProperties | Methods | Events Packagelaya.d3.core.pixelLineClasspublic class PixelLineSprite3DInheritancePixelLineSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object PixelLineSprite3D 类用于像素线渲染精灵。 Public Propertie...

来源: Laya2.0_api 发布时间: 20190513

996. 微信开发工具编译报错 [ 66%]

...看看怎么回事? VM168:1 gameThirdScriptError Cannot read property 'events' of undefined TypeError: Cannot read property 'events' of undefined at Function.EventDispatcher.__init$ (http://127.0.0.1:35024/game/code.js:634:29) at http://127.0.0.1:35024/game/code.js:14:71 at Array.forEach (<anon...

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

997. Laya2.7版本 导出来的粒子特效有一个报错, 其他几个都没问题, 请教下这个特效是哪里有问题 [ 66%]

...js:32262)     at Loader._onHierarchylhLoaded (laya.d3.js:32277)     at EventHandler.runWith (laya.core.js:1000)     at Loader.event (laya.core.js:1039)     at Loader.complete (laya.core.js:18862)     at Loader.onLoaded (laya.core.js:18818)     at EventHandler.runWith (laya.core.js:998) ...

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

998. 同步龙骨插槽动画方案 [ 66%]

...is.mFactory = new Laya.Templet();         this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete, [aniMode]);         this.mFactory.loadAni(url);     }      private parseComplete(aniMode: number, fac: Laya.Templet): void {         this.mArmature ...

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

999. [LayaAir3]LayaAir3.0UnityPlugin 导出出错 [ 66%]

...Verify that all layout Begin/End calls match UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)  MissingReferenceException: The object of type 'SkinnedMeshRenderer' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not dest...

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

1000. laya.d3.core.MeshTerrainSprite3D [ 66%]

...| Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainMeshSprite3D 类用于创建网格。 Public Properties...

来源: Laya2.0_api 发布时间: 20190513