大约有 2,310 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
... · 一个panel对象,高度500 · 一个box对象,高度1000 · panel.addChild(box)· 设置panel的垂直滚动skin,让它可以响应鼠标滚动 运行后发现: 能响应鼠标事件的位置只有box的上半部分(上面的500 px) (把box滚动到最下面,就无法再滚...
来源: Laya_社区 发布时间: 20170622
..."#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.drawTo...
来源: Laya_社区 发布时间: 20220809
...nsor(); } createSensor() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,400,50,600,1...
来源: Laya2.0_示例 发布时间: 20251218
...rite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); Tween.to(sp,{x:300,y:300,alpha:0.5},1000,null,Handler.create(this,function():void { sp.destroy(); })); Complete事件你没写错,就是那么写的 2017-06-08 0 0 分享 微博 QZONE 微信 ohkei - as3...
来源: Laya_社区 发布时间: 20170608
...buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler); play(); changeSkin(); Laya.timer.loop(1000, this, changeSkin); } function changeSkin() { mCurrSkinIndex++; if (mCurrSkinIndex >= mSkinList.length) { mCu...
来源: Laya_示例 发布时间: 20251218
...e.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } onHttpRequestError(e) { console.log(e); } onHttpRequestProgress(e) { console.log(e); } onHttpRequestComplete(e) { logger.text += "收到数据:" + hr.data; } } new Network_POST();module laya { import Sta...
来源: Laya2.0_示例 发布时间: 20251218
...法让他不穿透,比如2d游戏中,我可以让金黄色的人物后addChild()到舞台就行了,这样黄色人物就不会被先addChild()的角色遮挡; 介绍一下如图所示的场景属性设置,摄像机是正交投影,所有人物模型朝向是自己局部坐标中的Z朝...
来源: Laya_社区 发布时间: 20190822
...用loadImage var ape: Sprite = new Sprite(); ape.pos(100,50); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); } } } new laya.Sprite_DisplayImage(); ``` 在示例代码里,“`100,50`”是图片的显示坐标信息。示例代码运行效果如图2-1所示: ;和Laya.stage.addChild(sp);可以将精灵显示出来,但是没不是添加在地图的图层中,因为我在进行地图拖动时精灵并没有跟着地图一起拖动,而是没有移动,这样的话并...
来源: Laya_社区 发布时间: 20181211
...e.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(...
来源: Laya_社区 发布时间: 20170819