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

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

1121. 2.3微信截图分享问题 [ 70%]

2.3微信截图分享问题 let textur: Laya.Texture = this.cut.drawToTexture(500, 500, 0, 0);   this.show.texture = textur此代码可以获得一个组件的纹理。并且可以正常展现到另一个组件上去。   现在有个问题。如果用微信分享怎么搞?微信那边需要...

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

1122. 安卓和iPhone的触控差异 [ 70%]

...一边滑动一边施放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:E...

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

1123. Uncaught TypeError: Cannot read property '_tf' of null [ 70%]

...le(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); }   public function tweenGuide1(image:Image):void {    Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } ********************************************【End...

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

1124. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 70%]

...手引导的抠图透明区域为黑色,其它机型都是正常的。 this.guideContainer = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea:...

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

1125. bind函数的作用 [ 70%]

...rotobuf.load(["proto/game.proto", "proto/user.proto"], this.onProtoLoaded.bind(this)); a15715740412 • 2018-01-30 16:31 /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated wit...

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

1126. laya.ui.Tree_API3.0 [ 70%]

.../clip_tree_folder.png", "resource/ui/clip_tree_arrow.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "<root><item label='box1'><abc...

来源: Laya3.0_api 发布时间: 20231115

1127. Dialog的popupEffect是不是有bug [ 70%]

...到这个问题了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{                 var dialog:Dialog = <Dialog>e;                 dialog.y = - dialog.height;                 var yy:number = (Laya.stage.height - dialog.height)...

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

1128. TileMap有明显的bug [ 70%]

...ateMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(2 * 64, 2 * 32)); 附件 : --> 2019-01-02 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为...

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

1129. List滚动到底部事件 [ 70%]

...end',list,scrollBarHandler)   function scrollBarHandler(){         if(this.scrollBar.value == this.scrollBar.max){                 var that = this;                 setTimeout(function(){                      that.addItem("../../res/ui/listskins/5.jpg");          ...

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

1130. Tween.to 执行失败 [ 70%]

...函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:Handler.create(this,function(){ Tween.to(sprite,{x:sprite.x,y:Laya.stage.mouseY,update:new Handler(this,onWalk(vDir))}) ; })}) ; console.log(sprite.x) ; console.log(sprite.y) ; console.log("once don...

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