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

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

961. 自定义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_示例 发布时间: 20251209

962. 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

963. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 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

964. 官方文档里的位图字体的制作与使用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

965. 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

966. 分享: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

967. 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

968. 请问如何释放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

969. 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

970. 感觉实例之间是关联的,求指教。(已解决) [ 60%]

...tempStringArray[i] + ".png"; img.loadImage(tempImageName, i * 30, 0); this.addChild(img); var poker = new Poker(img,tempImageName); poker.show(); // Laya.stage.addChild(img); } } return Panel1; }(ui.Panel1UI));[/i] 这是扑克类[i]/* * 补克类 */ var Poker = (function () { function Poker(img,tem...

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