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

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

21. Laya定位和事件绑定 [ 70%]

...+CSS布局的,而这种方法需要使用JS来动态计算Canvas尺寸、坐标,感觉对使用DIV+CSS布局的侵略性比较大,有没有更好的解决方案呢?ヾ(。 ̄□ ̄)ツ゜゜゜ 2017-09-27 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你这个建议使...

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

22. laya.display.Graphics [ 69%]

...mber, height:Number):ClipRectCmd 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void 销毁此对象。 Graphics  drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawCircleCmd 绘制圆形。 Graphics  drawC...

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

23. 物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...ger 读取并缓存为 _pixelRatio 与 _RePixelRatio=1/_pixelRatio,用于坐标/长度的双向换算;同时它也会被写入 box2DWorld._pixelRatio,供 WASM 物理工厂在创建形状、关节、刚体等时统一缩放。换算关系可以直观理解为:物理值(米) = 像素值 / ...

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

24. laya.display.Graphics_API3.0 [ 67%]

... in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移量。 width: number 宽度。 height: number 高度。 Returns ClipRectCmd destroy destroy(): void Defined in laya/display/Graphics.ts:78 销毁...

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

25. 飞机大战js源码中判断语句问题 [ 67%]

...显示背景图2 bg2.loadImage("res/background.png"); //设置背景图2的坐标 bg2.pos(0, -852); //把背景2添加到容器 box.addChild(bg2); //设置一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, onLoop); })() /** * 在onLo...

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

26. laya.html.dom.HTMLDivElement_API3.0 [ 66%]

...量图),根据对象形状进行遮罩显示。 【注意】遮罩对象坐标相对遮罩对象本身的,和Flash机制不同 Returns Sprite Inherited from AnimationBase.mask Defined in laya/display/Sprite.ts:1628 遮罩,可以设置一个对象(支持位图和矢量图),根据对象...

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

27. laya.ani.GraphicsAni_API3.0 [ 66%]

... in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移量。 width: number 宽度。 height: number 高度。 Returns ClipRectCmd destroy destroy(): void Inherited from Graphics.destroy Defined in lay...

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

28. laya.ui.AutoBitmap_API3.0 [ 64%]

... in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移量。 width: number 宽度。 height: number 高度。 Returns ClipRectCmd destroy destroy(): void Overrides Graphics.destroy Defined in laya/ui/...

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

29. hitArea用法问题 [ 60%]

...达人 赞同来自: Rectangle中的区域设置的不对,点击区域的坐标相对于对象自己的 比如说往左、往上扩充50像素。应该Rectangle(-50,-50,w,h) 2017-09-20 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

30. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 60%]

...yaAir中如何使图片以圆形的方式显示? 招聘:H5游戏开发 坐标:深圳南山 IOS系统内嵌H5游戏,退到后台,等几秒返回音乐音效全无 游戏运行在chrome里面 听不见声音 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? Texture...

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