大约有 821 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0046 秒)
Laya_社区(448) Laya3.0_api(77) laya_api(70) Laya2.0_api(64) Laya2.0_文档(50) Laya2.0_示例(39) Laya_示例(37) Laya3.0_文档(36)
...数组:["a.png","b.png"];复杂数组[{url:"a.png",type:Loader.IMAGE,size:100,priority:1},{url:"b.json",type:Loader.JSON,size:50,priority:1}]。 complete:Handler (default = null) — 加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源地...
来源: Laya2.0_api 发布时间: 20190513
...vate var img:Image; private var label:Label; public function Item() { this.size(WID,HEI); img=new Image(); addChild(img); label=new Label(); label.x=30; label.y=40; img.addChild(label); } public function setImg(src:String):void { img.skin=src; } public function setLabel(text:String):void { label.tex...
来源: Laya_社区 发布时间: 20170626
... Projection 投射。Perspective 透视投影,Orthography正交投影。 Size 大小。当设置了正交摄影机时的视口大小。 Field of View 视野范围。相机的视角宽度,以及纵向的角度尺寸。 Clipping Planes 裁剪平面。从摄影机到开始渲染和停止渲染的...
来源: Laya2.0_文档 发布时间: 20210715
...ox(): void { this.hbox = new Laya.HBox; this.hbox.pos(100, 100); this.hbox.size(600, 300); this.hbox.bgColor = "#ffffff"; this.hbox.addChild(this.btn1); this.hbox.addChild(this.btn2); this.hbox.addChild(this.btn3); this.hbox.space = 100; this.hbox.align = "middle"; } } Copyright ©Layabox 2022 all r...
来源: Laya3.0_文档 发布时间: 20241014
...xt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id...
来源: Laya_社区 发布时间: 20180227
...= new HTMLCanvas(true); //创建一个canvas canvx.size(canvasWidth, canvasHeight); //设置宽高,这个和ImageData保持一致 var ctx2dx = canvx.getContext('2d'); //获取上下文 var imgdata = ctx2dx.getImageData(0,0,can...
来源: Laya_社区 发布时间: 20190317
...(source._nativeObj.getImageData(0,0,width,height)); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawImage(source,0,0,width,height); this._pixels=new Uint8Array(Browser.context.getImageData(0,0,width,height).data.buffer); } } this._readyed=true; this._activeReso...
来源: Laya_社区 发布时间: 20190809
...layContainerClass(); panel.graphics.drawRect(0,0,200,200,"#ffffff"); panel.size(200,200); this.addChild(panel); var panelChild:Laya.Sprite = new Laya.Sprite(); panelChild.graphics.drawCircle(0,0,50,"#ffbb88"); panelChild.pos(100,100); panel.addChild(panelChild); } } new GameMain(); 附件 : --> 2017...
来源: Laya_社区 发布时间: 20170814
...e = new Sprite(); this.addChild(reference); reference.pos(0, 0); reference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位...
来源: Laya_社区 发布时间: 20180313
...lso have an example here on how to encode your header based on the payload size (this is an php example) github.com/CycloneCode/WSServer/blob/master/src/WSServer.php – Cyclonecode Jul 7 '15 at 10:26 Here is another example: stackoverflow.com/questions/8125507/… – Cyclonecode Jul 7 '15...
来源: Laya_社区 发布时间: 20180612