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

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

611. sprite添加texture后,sprite无法触发点击事件? [ 73%]

...m.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name])); Laya.stage.addChild(this.item);  this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

612. dialog.removeSelf is not a function [ 73%]

...is.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function 问题状态 最新活动: 2017-04-18 19:37 浏览: 1625 关注: 2 人 136*****931 • 2017-04-19...

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

613. 文字在框内滑动、滚动文本 [ 73%]

...   this.txt.fontSize=20;     this.txt.color="#ffffff";     Laya.stage.addChild(this.txt);     this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){     this.prevX = this.txt.mouseX;     this.prevY = this.txt.mouseY;     Laya.stage.on(Laya.Event.MOUSE_M...

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

614. 加载学堂3D角色资源,播放动画异常 [ 73%]

....roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scene.addChild(this.roleMan); //给男角色添加贴图动画 var manAni:Laya.SkinAnimations = this.roleMan.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations; manAni.url="man/hero.ani"; manAni.player.play(); // play函数...

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

615. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 73%]

...Img(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是点击...

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

616. graphics持续绘制扇形问题 [ 73%]

... { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private function onLoop():void { pie.graphics.drawPie(300,300,100,curAngle,curAng...

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

617. .lh 文件不能在同一js文件内重复引用吗? [ 73%]

... Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf3);  ...

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

618. 我创建了 一个 dialogUI,怎么在页面中打开? [ 73%]

...0; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话框 我现在这个对话框是可以初始化的 ,不过没有界面,就是一个关闭×,其它控件...

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

619. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 73%]

...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directio...

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

620. 资源回收的清理不干净的bug [ 73%]

...i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());                 ball.name = i.toString();             }             console.log("add finished: ", myscene.numChildren);                  for(v...

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