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

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

491. TiledMap通过名字获得MapLayer怎么都是Null [ 57%]

...aya.input输入框里面的值 gps定位获取当前城市名字 用sprite.graphics绘制一个矩形 这个矩形对象不能获得鼠标事件的么? Cannot read property 'displayObject' of null 引擎示例里的3d场景是如何获得的? 例如停车场那个场景, .ls 格式文件可用...

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

492. LayaAir开发笔记(1)五十音图连连看 [ 57%]

...); Laya.stage.addChild(card[index]); card[index].name = index; card[index].graphics.drawRect(0, 0, 80, 120, null, "#000000", 2); card[index].graphics.loadImage("linkgame_card.jpg"); card[index].size(80, 120); card[index].pos(10 + 100 * i, 130 + 140 * j); card[index].on(Laya.Event.CLICK, this, functi...

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

493. laya.ui.WXOpenDataViewer_API3.0 [ 57%]

...nent WXOpenDataViewer Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSourc...

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

494. 改变位置后,点击区域不生效了 [ 57%]

...) { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } private function onClick(event:Event):void{ Render._mainCanvas.source.style.left = "100px"; Render._mainCanvas.source.style...

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

495. laya.display.AnimationBase_API3.0 [ 57%]

...meAnimation Animation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anch...

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

496. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 57%]

...d { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); sp.zOrder=1000; mapLayer.addChild(sp); Laya.timer.loop(200,this,onLoop); } private var aaa:Number=0; private var bbb:Number=0; private function onLoop():void { aaa--; sp.x++...

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

497. TimeLine运行的小问题 [ 57%]

...it(600, 400); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); var timeLine:TimeLine=new TimeLine(); timeLine.on(Event.LABEL,this,onLabel); timeLine.addLabel("A",0).to(sp,{rotation:360},700) .addLabel("B",0).to(sp,{scaleY...

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

498. 怎么样用代码修改遮罩的大小 [ 57%]

...注: 2 人 Daniel • 2018-06-30 22:21 我知道教程里是用this.cMask.graphics.drawCircle(80,80,50,"#ff0000");画出一个圆形遮罩,如果我要动态改变遮罩的大小,是要重新画一个圆吗,还是有办法获得圆的半径直接修改 晓风残月 • 2018-08-27 16:...

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

499. laya.display.FrameAnimation_API3.0 [ 57%]

...ation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anch...

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

500. 微信IphoneX 绘制圆形遮罩,当destroy时会卡死 [ 57%]

...  let sprite = new Laya.Sprite()  let render = new Laya.Sprite(); render.graphics.drawCircle(0, 0, 40, "#ff0000"); this.render = render;  sprite.mask = render;   当调用 sprite.destroy();时,游戏就卡死了   现在只发现这一个机型会卡死   2019-07-02 添加评论 免费帖 --> ...

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