大约有 890 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)
Laya_社区(515) Laya_示例(65) Laya3.0_api(65) Laya2.0_api(62) Laya2.0_文档(60) laya_api(57) Laya2.0_示例(51) Laya3.0_文档(15)
...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
....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
...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
...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
...此容器作为物理世界坐标世界,进行坐标变换,默认值为stage 设置特定容器后,就可整体位移物理对象,保持物理世界不变PhysicsPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Physics()Physics enable(options:...
来源: Laya2.0_api 发布时间: 20190513
... 10, "#fff333"); //位置正确 sprite.scale(scaleRatio, scaleRatio); Laya.stage.addChild(sprite); console.log(sprite.width); console.log(sprite.height); 比如我在一个sprite的中心画一个圆,用scale放大后,圆偏离中心。 必须在原位置减去位置除以缩放比才能达到...
来源: Laya_社区 发布时间: 20170821
...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
...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
...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
...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