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

大约有 311 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0065 秒)

261. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 61%]

... this.viewport.x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代...

来源: Laya3.0_文档 发布时间: 20231214

262. 求解Physics3D 内存占用问题 [ 61%]

...]['_defaultConfig']['_defaultPhysicsMemory'] = 30; Laya3D.init(GameConfig.width, GameConfig.height); console.log(window.Physics3D) ``` 分析Physics3D里面的几个变量 发现内存占用超大. HEAP8,HEAPU8 这2个对象是同一个么. 都是30M字节长度数组. 而且内容是重复的. ...

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

263. 某些机型drawToCanv绘图颜色变深 [ 61%]

...ring); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align', "middle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style'...

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

264. laya.display.Text [ 61%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  font : String 文本的字体名称...

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

265. laya.display.Text [ 61%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

266. 2.3.0beta 各种bug [ 61%]

... if (rect[2] == -1)                     rect[2] = Math.ceil((cri.width + lineWidth * 2) * this.lastScaleX);             }             var dt_w = w != 0 ? w : 1;             var dt_h = h != 0 ? h : 1;             if(rect){                 dt_w = rect[2] != 0 ...

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

267. laya.ani.bone.Skeleton [ 60%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性width、height、hitArea,优先级顺序:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929

268. TileMap有明显的bug [ 60%]

...og("map create ..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap(); tMap.createMap("res/isometric_grass_and_water.json", viewRect, Laya.Handler.create(this, this._OnMapCreate), null, new Laya.Point(2 * 64, 2 * 32)); 附件 : --> 2019-...

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

269. 分享:Dragonbones/Spine的换肤操作 [ 60%]

...数,切换不同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='midd...

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

270. laya.ani.bone.Skeleton [ 60%]

...read-only] 对象的显示高度(以像素单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

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