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

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

981. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 60%]

...s.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入...

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

982. new Laya.Templet() 时,说这不是一个constructor [ 60%]

...ew Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动...

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

983. chrom 跨域问题如何解决 [ 60%]

...来自: 你这个不是跨域   你都没添加到舞台上:Laya.stage.addChild(tx); 2017-08-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dashiming 相关问题 发起问题须知,必看!!!不按提问规则的,官方...

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

984. IDE-显示IDE创建的界面 [ 60%]

...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...

来源: Laya_示例 发布时间: 20260303

985. IDE-显示IDE创建的界面 [ 60%]

...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...

来源: Laya2.0_示例 发布时间: 20200319

986. TiledMap,mapLayer追加精灵无法显示,已参考完已有问题解答,无法解决 [ 60%]

...t覆盖_childs,所以还要在_showGridList里添加,原来的mapLayer.addChild倒不是必须了,具体代码如下mapLayer._showGridList.push(sp);如果你用的ts的话还会报错说_showGridList不存在,需要在libs/LayaAir.d.ts里,找到class MapLayer extends Sprite这一行,在...

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

987. Laya.Sprite loadImage 参数问题 [ 60%]

...ite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/img/monkey1.png", w, h);//报错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0...

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

988. 龙骨skeleton鼠标点击区域的设置 [ 60%]

... mArmature = mFactory.buildArmature(1); mArmature.play(0,true); Laya.stage.addChild(mArmature); mArmature.pos(300,600); var rect:Rectangle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同...

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

989. laya.display.Stage [ 60%]

...只有一个stage实例,此实例可以通过Laya.stage访问。Stage addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

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

990. animation在自定义box节点下不显示 [ 60%]

... 在stage上面也能显示吗? Laya_Aaron • 2018-07-20 10:35 在哪里addchild的。 135*****576 • 2018-07-20 10:40 在主循环里面添加的 Laya_Aaron • 2018-07-20 10:41 @135*****576:加给谁了,那个父节点有加进舞台吗 135*****576 • 2018-07-20 10:43 加给自己创建的...

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