大约有 3,979 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0071 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你可以通过 var matrix = Laya.stage.get_transform(); 第一个方法: matrix.tx += 100;//水平方向移动; matrix.ty += 100;//垂直方向移动; 第二个方法: matrix.translate('水平方向移动','垂直方向移动'); 2020-08-25 0 ...
来源: Laya_社区 发布时间: 20200825
...t, p2:Point, p3:Point, p4:Point):void { var texture:Texture = Laya.loader.getRes(srcbmd.skin); target.graphics.drawTexture(texture,0,0); var path:Array = ; path.push(p2.x, p2.y); pa...
来源: Laya_社区 发布时间: 20160627
... public function get ctrlKey():BooleancurrentTargetproperty public var currentTarget:Sprite 事件当前冒泡对象。deltaproperty public var delta:int滚轮滑动增量keyCodeproperty public var keyCode:int键盘值keyLocationproperty keyLocation:uint [read-only] 表示键在键盘...
来源: Laya2.0_api 发布时间: 20190513
...所示。测试代码Laya.init(Laya.Browser.width, Laya.Browser.height); var html = new Laya.HTMLDivElement(); html.style.fontSize = 30; html.style.whiteSpace = "nowrap"; html.innerHTML = '<span style="color:#ffffff">test</span>'; html.pos(500, 300); html.size(html.contextWidth, html.con...
来源: Laya_社区 发布时间: 20170620
...开启节点destroy 事件 LayaPatch.Enable_NodeDestroyEvent = function(){ var oldDestroy = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你直接...
来源: Laya_社区 发布时间: 20171120
...penData:any = Laya.Browser.window.wx.getOpenDataContext(); var mat=new Laya.Matrix(); mat.translate(opendata.x,opendata.y); var stage=Laya.stage; //mat.scale(stage._canvasTransform.getScaleX()*opendata.globalScaleX *stage.transform.getScaleX(),stage._c...
来源: Laya_社区 发布时间: 20190815
... bg.y = 0; var bg2:Sprite = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path); bg2.x = 0; bg2.y = 0; this.addChild(bg2); bg2.on(laya.events.Event.MOUSE_DOWN...
来源: Laya_社区 发布时间: 20161223
...cket,但是 /** *... *@author ww */ //class BKLaya.adptclass.BKWebSocket var BKWebSocket=(function(){ function BKWebSocket(url){ this._socket=null; this.onopen=null; this.onmessage=null; this.onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.o...
来源: Laya_社区 发布时间: 20180328
...ber, callBack:Function):voidHTMLCanvasProperty Detail_sourcepropertypublic var _source:*_textureproperty public var _texture:Texturecontextproperty context:Context [read-only] Canvas 渲染上下文。 Implementation public function get context():Contextsourceproperty source:* [read...
来源: Laya2.0_api 发布时间: 20190513
...大小判断。"现在都2.0版本了.这个问题需要解决一下了. var key:int = h * 10000 + w; var sw:Array = dict[key]; 所以给有骨骼动画的对象添加滤镜和遮罩的时候,内存会崩掉. 做技能的扇形指引框的时候(遮罩实现),也会使内存崩掉. 这个问...
来源: Laya_社区 发布时间: 20190116