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

大约有 890 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

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

842. 加载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

843. 怎么给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

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

845. laya.physics.Physics [ 50%]

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

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

846. 求问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

847. AS转换JS运行报错 [ 50%]

...2017-01-24 0 3 分享 微博 QZONE 微信 kevinchen2046 赞同来自: Laya.stage.on(Event.KEY_DOWN,this,KeyHandler); 应该这样写.... 2017-01-24 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****403 相关问题 Layabox 2.0 bate5...

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

848. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 50%]

...ris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = ...

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

849. laya.ui.TextArea_API3.0 [ 50%]

...extArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea =...

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

850. 怎么在不同时间显示MovieClip的多个实例 [ 50%]

...ieClip(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行后生成一个新的MovieClip实例,然而会把旧的MovieCip销毁掉,要怎么解决这个问题,求...

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