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

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

821. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 60%]

...    let partIns = new Laya.Particle2D(settings);         Laya.stage.addChild(partIns);         // 开始发射粒子         partIns.emitter.start();         // 播放         partIns.play();          partIns.x = Laya.stage.width / 2;       ...

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

822. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 60%]

...al/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new ...

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

823. layacanvas 大小问题 [ 60%]

...置,否则鼠标事件会有问题 如果一定要改的话需要先把stage适配的相关代码看明白 2018-01-16 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 erwer8363 相关问题 发起问题须知,必看!!!不按提...

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

824. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 60%]

...d(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotation!" + testUI.rotation); }); } 附件 : --> hitTestPoint.zip 2018-03-15 添加评论 免费帖 --> 分享 微博 QZONE...

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

825. ios15遮罩引起的黑屏在1.x的版本上如何解决 [ 60%]

... = new Sprite(); maskArea.alpha = 0; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.setName("maskArea") mask.addChild(maskArea);   //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 highLightArea = new Sprite(); highLightA...

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

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

...0, WebGL);             Stat.show(0, 0);             Laya.stage.scaleMode = "showall";             Again();         }         private function onAssetLoaded(e:*=null):void         {             // var texture:Texture = Loader.getRes("res/Dragon...

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

827. laya.display.Input [ 60%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node  editable : Boolean 是否可编辑。 Input filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  focus : Boolean 表示焦点是...

来源: laya_api 发布时间: 20170929

828. fixedwidth 有最大宽度限制吗? [ 59%]

fixedwidth 有最大宽度限制吗? 使用 Laya.stage.scaleMode = "fixedwidth"; 宽度始终以屏幕为准,我希望可以有个 max-width : 768px 的限制,可以实现吗? 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

829. 更新到1.7.6beta之后,HBox有bug [ 59%]

...mg.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); } 2017-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 lusky 相关问题 Layabox 2.0 bate5 运行编译之...

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

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

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