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

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

861. 为什么hitTestPoint始终是false? [ 65%]

...or() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什...

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

862. scrollRect 改变后子对象的鼠标事件失效 [ 65%]

...t 改变后子对象的鼠标事件失效 bg=new Laya.Sprite(); Laya.stage.addChild(bg); bg.size(800,600); bg.loadImage("aa_1.Png",0,0,800,600); poly=new Laya.Sprite(); bg.addChild(poly); poly.size(36,36); poly.pivot(18,18); poly.loadImage("SafeExitL.png",0,0,36,36); poly.pos(400,300); poly.on("mous...

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

863. TimeLine运行的小问题 [ 65%]

...rite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360},700) .addLabel("B",0).to(sp,{scaleY:0.7},200) .addLabel("C",0).to(sp,{scaleY:1},200); ti...

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

864. 八叉树与PixelLineSprite3D冲突 [ 64%]

...s);     this.scene3d = new Laya.Scene3D();         Laya.stage.addChild(this.scene3d);         let ss = new Laya.PixelLineSprite3D();         this.scene3d.addChild(ss);     附件 : --> 2021-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

865. 求助。资源加载问题,按照官方demo出现问题 [ 64%]

...onLoadComplete(){     const scene = new Laya.Scene3D()     Laya.stage.addChild(scene)          const prefab = Laya.loader.getRes(url)     scene.addChild(prefab) } 2020-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

866. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 64%]

...SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(th...

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

867. FlashBuilder中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 64%]

...黑色 txt.color = '#ffffff'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } ``` **步骤五**: 完成代码编写后,使用之前文章里配置的编译器,点击按钮开始编译,编译完成后会自动启动chrome运行代码。如图8所示 ![8](img/8.jpg) (图8) 运...

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

868. 关于graphics._saveToCmd的问题 [ 64%]

...(600,400);         this.sp = new Laya.Sprite();         Laya.stage.addChild(this.sp);         var arr:Array<any> = [this.sp,1,2,3];         this.sp.graphics._saveToCmd(this.test1,arr);     }     test1(x,y,args):void     {         console.log("args[0]"+args[0]+",args...

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

869. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 64%]

...cb1 = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200); //文本标签内容 cb1.label="我是多选框1"; //label文本字体大小 cb1.labelSize = 20; //设置为默认选中状态 cb1.selected = true; //再创建...

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

870. 场景进行destroy销毁后,再次加载同一场景,就会报错 [ 64%]

...tParent (file:///D:/H5/bin/libs/laya.core.js:18511:31)   at Stage.__proto.addChild (file:///D:/H5/bin/libs/laya.core.js:13290:9)   at SceneManage.createScene (file:///D:/H5/bin/js/bundle.js:26107:20)   at BattleLoading.<anonymous> (file:///D:/H5/bin/js/bundle.js:18082:57)   at Handler.__pr...

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