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

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

3671. laya.ui.CheckBox_API3.0 [ 48%]

...} 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

3672. Animation 使用疑问 [ 48%]

...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

3673. 请问laya2.0 2d物理有射线检测功能吗 [ 48%]

...所有,找出从起点到终点所有与射线接触的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

3674. laya.net.Socket [ 48%]

...   public function get connected():BooleandisableInputproperty public var disableInput:Boolean = false 不再缓存服务端发来的数据,如果传输的数据为字符串格式,建议设置为true,减少二进制转换消耗。 endianproperty endian:String 主机字节序,是 CPU 存...

来源: Laya2.0_api 发布时间: 20190513

3675. 微信小游戏,又是json编码的问题 [ 48%]

...法示例仅做参考,视项目情况自行修改或拓展 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

3676. Laya.Sprite3D.instantiate克隆的对象过多,渲染不出来 [ 48%]

....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

3677. LayaBox加载TiledMap地图和注意事项 [ 48%]

... 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

3678. TiledMap制作横板地图 报错 [ 48%]

...ate(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是141行在初始化tTileSet时就没有image属性了,可能是我的地图json文件的问题。   我在TiledMap中...

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

3679. 头条/微信/OPPO/vivo/趣头条/百度 等渠道发布 [ 48%]

... • 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

3680. laya.ui.Button [ 48%]

...果可以当作图片源,再次绘制到其他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