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

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

961. 添加了MouseJoint没有效果 [ 60%]

...a.physics.RigidBody); ropePart.addComponentIntance(mouseJoint); Laya.stage.addChild(ropePart); 2019-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

962. 自定义shader-地形shader [ 60%]

....screenMode = Laya.Stage.SCREEN_NONE; initShader(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/terrain/terrain.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.tr...

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

963. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 60%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play) this.play(); } private onError(): void{ c...

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

964. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 60%]

...nction initMatter():void { var gameWorld:Sprite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:t...

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

965. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 60%]

...体txt.font = this.mFontName;txt.fontSize = 50;txt.leading = 5;Laya.stage.addChild(txt);} 2018-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: 直接写在main.js里也行,自己建一个...

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

966. laya.ui.LayoutBox [ 60%]

...nherited Public Methods Show Inherited Public Methods MethodDefined By  addChild(child:Node):Node[override] 添加子节点。 LayoutBox  addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 LayoutBox addChildren(... args):void 批量增加子节点 Node...

来源: laya_api 发布时间: 20170929

967. 分享:SWF LABEL标签的使用! [ 60%]

...; mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private function onLoaded():void { mc.addLabel("label01",19); mc.addLabel("label02",39); mc.addLabel("label03",59); mc.on(Event.LABEL,this,onLabel);//运行到对应的帧数,会触发对应的标签 } priva...

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

968. laya.display.Stage [ 60%]

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

来源: laya_api 发布时间: 20170929

969. 请问如何释放atlas和他的png资源 [ 60%]

...race( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ddd():void { trace("aaa1",Laya.loader.getRes(url)); Laya.stage.removeChildren(); Laya.loader.clearRes(url); trace("aa...

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

970. Templet资源删除不掉 [ 60%]

...           swordman.play(0, true);             Laya.stage.addChild(swordman);              swordman.pos(width / 2,  height / 2);             Laya.timer.frameOnce(100, this, unload);         }         private function unload() : void         {  ...

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