大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0072 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...} private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创建一个 CheckBox 类的实例对象 checkBox ,传入它的皮肤skin和标签label。 checkBox.x = 100;//设置 checkBox...
来源: Laya3.0_api 发布时间: 20231115
...s(direction); this.aniBody.play(0, loopPlay, key); var bound: Laya.Rectangle = this.aniBody.getBounds(); this.aniBody.pivot(bound.width / 2, bound.height / 2); if (direction < 0) { this.aniBody.scaleX = -1; } else { ...
来源: Laya_社区 发布时间: 20170615
...所有,找出从起点到终点所有与射线接触的fixture // break var world=Laya.Physics.I.world world.RayCast(function(fixture,point,normal,fraction){ console.log("fixture",fixture) console.log("point",point) console.log("normal",normal) console.log("fraction",fraction) },{ x:300, y:100 },{...
来源: Laya_社区 发布时间: 20190519
... public function get connected():BooleandisableInputproperty public var disableInput:Boolean = false 不再缓存服务端发来的数据,如果传输的数据为字符串格式,建议设置为true,减少二进制转换消耗。 endianproperty endian:String 主机字节序,是 CPU 存...
来源: Laya2.0_api 发布时间: 20190513
...法示例仅做参考,视项目情况自行修改或拓展 public static var getUrlAndEncode:Function = function(url:String,type:String):String { if (url.indexOf(".fnt") != -1 || url.indexOf("xxx.json") != -1) { return "utf8"; } else if (type == "arraybuffer") { return ""; } return "ascii"; } 2...
来源: Laya_社区 发布时间: 20180104
....m_circle.transform.localPosition; for(index = 0; index < 10; index++){ var circle = Laya.Sprite3D.instantiate(this.m_circle) this.m_pillar.addChild(circle); this.m_arrCircle.push(circle); this.m_vLastPos.y -= 60; circle.transform.localPosition = this.m_vLastPos; circle.active = true; } 2018-08-0...
来源: Laya_社区 发布时间: 20180809
... this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0, 0, Laya.Browser.width, Laya.Browser.height); //创建TiledMap地图 this.tMap.createMap("./map/desert.json", viewRect); } onEnable() { console.log(Laya.TiledMa...
来源: Laya_社区 发布时间: 20190321
...ate(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是141行在初始化tTileSet时就没有image属性了,可能是我的地图json文件的问题。 我在TiledMap中...
来源: Laya_社区 发布时间: 20161224
... • 2020-04-21 18:12 这个没遇到过 奥古斯都 • 2019-10-15 10:05 var exports = exports || {} 星夜 • 2020-02-21 17:44 打oppo包的时候不要这个库 ITMasterC • 2019-09-24 16:29 大佬,发头条的“Failed to execute 'texSubImage2D' on 'WebGL2RenderingContext':”怎么搞? ...
来源: Laya_社区 发布时间: 20190910
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513