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

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

841. [LayaAirIDE3]xcode切入切出声音不播放 [ 51%]

...在xcode里面切入切出,导致背景声音不播放问题。  Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus);  private onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManage...

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

842. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 51%]

...ton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.h...

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

843. "Background is not defined"怎么会没定义呢???求救 [ 51%]

...nction Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.b...

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

844. laya加载unity插件导出的场景 physics3D is not a function [ 51%]

...aya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position=new Lay...

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

845. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 51%]

....COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

846. 怎么给List下的每个item中的button添加事件? [ 51%]

...18-09-12 17:22 var btns = new Array; this.btnBox = new Laya.Sprite(); Laya.stage.addChild(this.btnBox); for(var i = 0; i < 5; i++){ var btn = new Laya.Sprite(); btn.loadImage("Key.jpg",i*100,800,100,60); btn.id= i; btns.push(btn); this.btnBox.addChild(btn); console.log(btn.id); } for(va...

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

847. worker的问题 [ 51%]

...ani.interval = 30;     ani.index = 1;      ani.play();     Laya.stage.addChild(ani);       postMessage(ani);//将获取到的数据发送会主线程   } 但是会报错,Uncaught ReferenceError: Laya is not defined laya怎么定义? 2018-01-08 0 0 分享 微博 QZONE 微信 为什...

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

848. [LayaAir3]list.selectHandler [ 51%]

...n.skin="resources/ui/目录2.png"; let modelCtrl:ModelCtrl =Laya.stage.getChildByName("Scene3D").getComponent(ModelCtrl) as ModelCtrl; if(modelCtrl!=null){ this.uiCtrl.InitLeftUI(modelCtrl.data.result); } if(this.uiCtrl._tagList!=null){ this.uiCtrl._tagList.visible=true; } }else{...

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

849. laya.physics.Physics [ 51%]

...此容器作为物理世界坐标世界,进行坐标变换,默认值为stage 设置特定容器后,就可整体位移物理对象,保持物理世界不变PhysicsPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  Physics()Physics  enable(options:...

来源: Laya2.0_api 发布时间: 20190513

850. 求问sprite放大后,graphics绘制的图像位置偏移 [ 50%]

... 10, "#fff333"); //位置正确 sprite.scale(scaleRatio, scaleRatio); Laya.stage.addChild(sprite); console.log(sprite.width); console.log(sprite.height); 比如我在一个sprite的中心画一个圆,用scale放大后,圆偏离中心。 必须在原位置减去位置除以缩放比才能达到...

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