大约有 592 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0056 秒)
Laya_社区(424) Laya3.0_api(61) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(30) Laya3.0_文档(11) laya_api(2) Laya2.0_api(1)
...aya.input输入框里面的值 gps定位获取当前城市名字 用sprite.graphics绘制一个矩形 这个矩形对象不能获得鼠标事件的么? Cannot read property 'displayObject' of null 引擎示例里的3d场景是如何获得的? 例如停车场那个场景, .ls 格式文件可用...
来源: Laya_社区 发布时间: 20181120
...); 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
...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
...) { 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
...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
...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
...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
...注: 2 人 Daniel • 2018-06-30 22:21 我知道教程里是用this.cMask.graphics.drawCircle(80,80,50,"#ff0000");画出一个圆形遮罩,如果我要动态改变遮罩的大小,是要重新画一个圆吗,还是有办法获得圆的半径直接修改 晓风残月 • 2018-08-27 16:...
来源: Laya_社区 发布时间: 20180629
...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
... 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