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

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

271. 如何在代码中new Poly [ 71%]

...请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: Graphics().drawPoly() /**          * 绘制多边形。          * @param x            开始绘制的 X 轴位置。          * @param y            开始绘制的 Y 轴位置。      ...

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

272. Laya.Handler.create和new Laya.Handler有啥区别 [ 71%]

...e3D的ALIGNMENT_TRANSFORM_Z模式和ALIGNMENT_VIEW模式有什么区别? graphics矢量图和svg矢量图有什么区别吗 问题状态 最新活动: 2017-04-25 17:32 浏览: 5214 关注: 4 人

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

273. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 71%]

...vate createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff); this.addChild(panel); let box:laya.physics.BoxCollider = panel.addComponent(laya.physics.BoxCollider); box.height = 20; box.width = 100; let rigid:Laya.RigidBody = panel.addComponent(...

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

274. 让 CylinderMesh 支持椎体 [ 71%]

...t.STATIC_DRAW*/0x88E4,true); this._indexBuffer=new IndexBuffer3D(/*laya.d3.graphics.IndexBuffer3D.INDEXTYPE_USHORT*/"ushort",this._numberIndices,/*laya.webgl.WebGLContext.STATIC_DRAW*/0x88E4,true); this._vertexBuffer.setData(vertices); this._indexBuffer.setData(indices); this.memorySize=(this._verte...

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

275. 2.0 的list问题 [ 71%]

...UI点击穿透的问题 我这样载入场景问题出现在哪呢?? graphics alpha 问题 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 问题状态 最新活动: 2019-01-06 21:27 浏览: 2729 关...

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

276. this.bitmap.activeResource is not a function [ 70%]

...haredCanvas.width,Laya.Browser.window.sharedCanvas.height); this._openZone.graphics.drawTexture(this._openZoneTexture,0,0,this._openZoneTexture.width,this._openZoneTexture.height,new Laya.Matrix(scaleX,0,0,scaleY)); } } 接字节跳动小游戏,绘制开放域排行榜时报this.bitmap.activeResou...

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

277. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 70%]

...); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangle.x, -rectangle.y, recta...

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

278. WebGL模式下,使用fillTexture填充Sprite,在Sprite移动时,会有间隔线显示并闪烁 [ 70%]

....height = GameMain._height; this.mapBg.x = 0; this.mapBg.y = 0; this.mapBg.graphics.fillTexture(texture, 0, 0, GameMain._width, GameMain._height); this.map.addChild(this.mapBg);    问题已经解决:当被填充的图片被打包进图集的话,会有此问题 解决办法就是,需要重...

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

279. 刚接触laya的一系列问题 [ 70%]

...机制、时间和其他一些Timer相关的问题 ios原生回调问题 graphics alpha 问题 问题状态 最新活动: 2018-09-06 15:43 浏览: 841 关注: 2 人 • 2018-09-07 10:45 1,前面问题确实不明确,不好意思,我想说的是:是否支持多个runtime脚本,如果支持...

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

280. 在 tiledmap 插入一个精灵在上面 [ 70%]

...is.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);   console.info(mapLayer.layerName);   this.sp.pos(0,0);   mapLayer._childs[0].addChild(this.sp); }   }   new GameInfo();   ...

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