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

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

361. laya.ui.Tree_API3.0 [ 66%]

...awToTexture3D event filter frameLoop frameOnce fresh freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_bottom get_dataSource get_height get_scaleX get_scaleY get...

来源: Laya3.0_api 发布时间: 20231115

362. PixelLineSprite3D 绘制线段问题 [ 66%]

... 1. 场景中存在一个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.V...

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

363. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 66%]

... function getScreenPositionByTilePos(tileX:Number, tileY:Number, screenPos:Point = null):void {             if (screenPos) {                 switch (_map.orientation) {                 case TiledMap.ORIENTATION_ISOMETRIC:                      screenPo...

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

364. laya.d3.core.Camera [ 65%]

...:Handler):void[static] 加载网格模板。 Sprite3D  normalizedViewportPointToRay(point:Vector2, out:Ray):void 计算从裁切空间生成的射线。 Camera off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 E...

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

365. laya.d3.math.BoundBox_API3.0 [ 65%]

...neTo getCenter getCorners getExtent setCenterAndExtent toDefault createfromPoints merge Constructors constructor new BoundBox(min: Vector3, max: Vector3): BoundBox Defined in laya/d3/math/BoundBox.ts:17 创建一个 BoundBox 实例。 Parameters min: Vector3 包围盒的最小顶点。 max: Vector3 ...

来源: Laya3.0_api 发布时间: 20231115

366. tiledMap 45度地图在移动地图时出现没及时渲染的黑块 [ 64%]

...下、左、右扩充一下,防止视口移动时的穿帮  gridSize:Point (default = null) — grid大小  enableLinear:Boolean (default = true) — 是否开启线性取样(为false时,可以解决地图黑线的问题,但画质会锐化)  limitRange:Boolean (default = fals...

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

367. canvas定位后 点击区域偏移 [ 63%]

...偏移,可以改源码: laya.core.js第12581行          this._point.setTo(e.pageX || e.clientX,e.pageY || e.clientY); 改为 this._point.setTo((e.pageX || e.clientX)-Browser._container.offsetLeft,e.pageY || e.clientY); 2019-05-30 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 你...

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

368. 2D物理-碰撞事件与传感器 [ 62%]

...let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.points = "50,400,50,600,1050,600,1050,400"; let sensorCollider = this.sensorCollider = ground.addComponent(Laya.CircleCollider); sensorCollider.isSensor = true; sensorCollider.radius = 100; sensorCollider.x = 450; sensorColli...

来源: Laya2.0_示例 发布时间: 20251209

369. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 62%]

...stage); init(); } private function init():void { _view = new Sprite(); var points:Array = [12,41, 0,72, 36,74, 76,72, 60,41, 36,-26, 12,41]; // 从0,0点开始画一个封闭的曲线 _view.graphics.drawCurves(0,0, points, "#ff0000", 15); Laya.stage.addChild(_view); _view.size(80, 100); _view.on(Eve...

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

370. laya.ui.CheckBox_API3.0 [ 61%]

...wToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_bottom get_dataSource get_height get_scaleX get_scaleY get...

来源: Laya3.0_api 发布时间: 20231115