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

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

1671. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 66%]

...mature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.add...

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

1672. 替换了启动画面,画面被放大了,请问启动画面的size可以设置吗? [ 66%]

... 微博 QZONE 微信 ZMLaya 赞同来自: 亲,我在程序入口将 Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT,这样不行吗? 你说的调整ui大小,该怎么调呢?是在load.js文件里调整吗?如果方便的话,给我详细说明一下好吗?拜托了。谢谢 2017-12-1...

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

1673. Laya3D 开启useRetinalCanvas导致射线检测错误! [ 66%]

...• 2021-02-22 12:02 @fftidus:这个不算是bug,文档中有做说明。stage坐标系和3d viewport坐标系不一致,stage坐标需要乘以缩放才等于viewport的坐标系的值。你可以手动处理。所以,我们没有当成bug去修复。不过,为了用户体验,我们也有...

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

1674. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 66%]

...本的显示起点位置X,Y txt.pos(60,100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); 2017-10-19 0 0 分享 微博 QZONE 微信 keailuo 赞同来自: 这个是整个demo hello.rar 2017-10-19 0 0 分享 微博 QZONE 微信 为...

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

1675. sprite.mask的疑问 [ 66%]

...      private a ()     {         let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite;         let b:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("B") as Sprite;         b.removeSelf();         a.ma...

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

1676. 在 tiledmap 插入一个精灵在上面 [ 66%]

...);   this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByInd...

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

1677. 模仿教程里的打地鼠写的代码,运行报错 [ 66%]

...unction(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addCh...

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

1678. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 66%]

... this.scene = Laya.loader.getRes("h5/LayaScene_scene03/scene03.ls"); Laya.stage.addChild(this.scene); //设置场景在2D界面最后(最底层为第0层) Laya.stage.setChildIndex(this.scene, 0); //获取场景模型中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChi...

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

1679. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 66%]

...动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img = new Laya.Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } ```

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

1680. laya.ui.View_API3.0 [ 66%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scene3D s...

来源: Laya3.0_api 发布时间: 20231115