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

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

2001. LayaAir DebugPanel 调试工具(ActionScript-2D进阶篇(AS3)-调试相关) [ 45%]

...r = "#ffffff"; var Img:Sprite = new Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } } ``` 运行效果如图1所示 ![图1](img/1.png) (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugInfoLayer`节点...

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

2002. 关于laya生成的canvas定位问题导致内部事件不正确 [ 45%]

...ar img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.S...

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

2003. laya.display.Node [ 45%]

... Node 类用于创建节点对象,节点是最基本的元素。 Node  addChild(node:Node):Node 添加子节点。 Node  addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node  addChildren(... args):void 批量增加子节点 Node  clearTimer(caller:*, method...

来源: laya_api 发布时间: 20170929

2004. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 45%]

... mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); }     } } new laya.Loader_MultipleType();   2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞同来...

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

2005. TypeError: Cannot read property 'length' of null [ 45%]

...study/project/client/test/air_war/bin/libs/laya.core.js:14081:19) at Scene.addChild (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:12752:22) at GameManager.createHero (file:///D:/work/study/project/client/test/air_war/bin/js/bundle.js:80:24) at GameManager.init (file:///D:/...

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

2006. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 45%]

..."); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage....

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

2007. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 45%]

...; { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 @叶子:不算。这样只是给了刚体一个索引而已 叶子 • 2019-01-11 20:54 @源:额,我...

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

2008. 动画不显示 [ 45%]

...         m_mapLayer = new Sprite();             Laya.stage.addChild(m_mapLayer);             //添加角色对象             m_Role = new Animation();             Laya.stage.addChild(m_Role);                          //异步加载资源 ...

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

2009. 分享-js资源进度加载 [ 45%]

....onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并且监听 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetsLoaded), Laya.Handler.create(this, this.onAssetsLoading, null, false)); } onAssetsLoading(progress) {...

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

2010. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 45%]

... { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya.stage.addChild(this.ape); //这里是我注释掉的代码 //var texture: Texture = Laya.loader.getRes(this.ApePath); //this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.sta...

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