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

大约有 82 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

31. 如何监听移动端软键盘的弹出和收回? [ 81%]

...和收回状态。   参考代码如下:package { import flash.display.Sprite; import flash.display.StageScaleMode; import flash.events.Event; import flash.events.FocusEvent; import flash.events.KeyboardEvent; import flash.text.TextField; import flash.text.TextFieldType; import flash.ui.Keyboard...

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

32. import自己写的类,new出来后为什么一片漆黑 [ 81%]

...一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } }   然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new BaseNPC(); 只要...

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

33. [LayaAir3]关于laya更新到3.1出现射线检测不到的情况 [ 81%]

...                  var _enemy=this.enemyHit.collider.owner as Laya.Sprite3D;                     if(_enemy.layer==6)                     {                         if(this.enemy!=null)return                         console.log("检测到敌人");  ...

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

34. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 81%]

...his.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新new的,模...

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

35. destination-out 叠加模式问题 [ 80%]

...的信息不全面 li970704928 • 2017-12-13 19:03 private var maskArea:Sprite; private var sp:Sprite; private var guideContainer:Sprite; public function openPoison():void { mapData = mapSession.mapData; guideContainer=new Sprite(); guideContainer.cacheAs = "bitmap"; this.addChild(guideCo...

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

36. 为什么自定义shader大图正常,小图就被缩小了 [ 80%]

...: 2 人 LeslieZzz • 2018-06-19 18:03 您是指 在将纹理传入myShaderSprite类的时候小图要做处理? x8? LeslieZzz • 2018-06-19 18:06 /* 该类需继承自显示对象类 在该类中使用了自定义的着色器程序 注意:使用自定义着色器时,需要设置该显示...

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

37. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 79%]

...imation("imgdebris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); ap...

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

38. Laya下的图片上传示例(完整版) [ 79%]

... img.height; if(width<100&&height<100){ var bgImg = new Laya.Sprite(); bgImg.loadImage(data); Laya.stage.addChild(bgImg) }else{ console.log("图片超标"+width+"--"+height); } }; img.src =data; } }; 2019-01-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

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

...区域为黑色,其它机型都是正常的。 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.Sprite = new Laya....

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

40. 3D模型无法正显示和播放动作 [ 78%]

...问题,还是使用问题           var hero = sphere.addChild(Laya.Sprite3D.load("./res/Xinzhaoyun/Zhaoyun_skin.lh"));          var ani = hero.addComponent(Laya.SkinAnimations);         ani.templet = Laya.AnimationTemplet.load("./res/Xinzhaoyun/Zhaoyun_standfight.lsani");       ...

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