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

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

511. GlowFilter和TimeLine/Tween一起用的问题 [ 80%]

...行以后没有效果 (function() { var Sprite     = Laya.Sprite; var Stage      = Laya.Stage; var GlowFilter = Laya.GlowFilter; var Texture    = Laya.Texture; var Browser    = Laya.Browser; var Handler    = Laya.Handler; var WebGL      = Laya.WebGL; var Tween   = Laya.Tween;     ...

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

512. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 80%]

...    tmapsp.zOrder=1;         this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);         this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 -...

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

513. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 80%]

...a.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) }  private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.l...

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

514. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 80%]

...te(this,this.onLoaded)); } private onLoaded():void{ //添加到舞台 Laya.stage.addChild(this.roleAni); } } new AtlasAniDemo(); ``` 运行代码,如图5所示。动画已加载到舞台上,默认是未播放状态的。 ![图5](img/5.png) (图5) #### 2.3 播放图集动画 图集动画使用loa...

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

515. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 80%]

...etViewPortPivotByScale(0,0); //将原地图放大3倍 tMap.scale = 3; Laya.stage.on(Event.RESIZE,this, this.resize); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); resize(); } /** * 移动地图视口 */ private function mouseMove():void { v...

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

516. 圆形的头像怎么实现? [ 80%]

....webgl.js'></script> <script> var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; Laya.init(1280, 800,WebGL); Laya.stage.alignV = Stage.ALIGN_LEFT; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = 'noborder'; Laya.stage.screenMode = Stage.SCREEN_HOR...

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

517. drawToTexture截大图有问题,会丢失 [ 80%]

...,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null)     }     drawImg(e:Event=null):void{         var copySpr:Laya.Sprite=new Laya.Sprite();         copySpr.texture=this.nsp....

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

518. 3D场景跳转到2D场景问题 [ 80%]

...rent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene);   this.isDelete=true;  // console.log(Scene3DControl.GameSceneB);   } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export ...

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

519. 关于mouseover的问题 [ 80%]

...{             Laya.init(600,600,WebGL);             Laya.stage.alignH=Stage.ALIGN_MIDDLE;             Laya.stage.alignV=Stage.ALIGN_TOP;                          var sp:Sprite=new Sprite();             sp.width=100;             sp.height...

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

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

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