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

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

1631. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 67%]

.../ this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (this._stage._canvasTransform) { this._stage._canvasTransform.invertTransformPoint(this._point); _this.mouseX = this._point.x; _this.mouseY = this._point.y; } _this._event.touchId = e.identifier || 0; this._tTouchID = _this._event.t...

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

1632. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 67%]

...:ui.ComponentDemoUI; constructor() { Laya.init(1334,750, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创...

来源: Laya2.0_文档 发布时间: 20210715

1633. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 67%]

...染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.skin1 = "checkbox.png"; this.skin2 = "checkbox.png"; //加载资源成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); functio...

来源: Laya2.0_文档 发布时间: 20210715

1634. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 67%]

...初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口,请参考: https://ldc2.layabox.com/...

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

1635. 为什么获取不到getBounds()的width,height [ 67%]

...pos(-bound.width / 2, -bound.height / 2);是动画里面的 feiji.pos(Laya.stage.mouseX, Laya.stage.mouseY);是鼠标监听事件 2个都是设置this.body的位置呢。先运行谁,还有  //设置机身的锚点为机身的显示宽高的中心点。 this.body.pos(-bound.width / 2, -bound.heig...

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

1636. laya.ani.bone.Skeleton_API3.0 [ 67%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY player rotation scaleX scaleY scene scrollRe...

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

1637. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 67%]

...a.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) }  private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.l...

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

1638. Laya 绑定显示内容到骨骼动画 [ 67%]

...用方式:    this.__bind=new BindSkeleton();         Laya.stage.addChild(this.__bind);         this.__bind.x=Laya.stage.width*0.5;         this.__bind.y=Laya.stage.height*0.5;          this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler....

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

1639. 请问当按钮使用的skin透明的部分太大的时候,能够透过什么方法去调整碰撞范围吗? [ 67%]

...。碰撞检测发生在鼠标事件的捕获阶段,此阶段引擎会从stage开始递归检测stage及其子对象,直到找到命中的目标对象或者未命中任何对象。 穿透表示鼠标事件发生的位置处于本对象绘图区域内时,才算命中,而与对象宽高和值...

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

1640. TiledMap,mapLayer追加精灵无法显示,已参考完已有问题解答,无法解决 [ 67%]

...并已经将其他3个mapLayer(1,2,4)设置不可见,也确定从stage->sprite->mapLayer(第三个)->sprite都设置为可见,黑色是 Laya.stage.bgColor 环境是1.7.10beta   附件 : --> 2017-09-18 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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