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

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

351. laya.physics.ChainCollider_API3.0 [ 86%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/ChainCollider" ChainCollider Class ChainCollider 2D线形碰撞体 Hierarchy ColliderBase ChainCollider Index Constructors ...

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

352. 怎么计算两个点之间的距离 [ 86%]

...到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: jinghuhuilai             var p1:Point = new Point(10,20);              var p2:Point = new Point(100,200);              var x:int = p1.x - p2.x;     ...

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

353. Slider控件的标签不居中 [ 86%]

Slider控件的标签不居中 protected function showValueText():void { if (showLabel) { var label:Label = Slider.label; addChild(label); label.textField.changeText(_value + ""); if (isVertical) { label.x = _bar._x + 20; label.y = (_bar.height - label.height) * 0.5 + _bar._y; } else { label.y = _b...

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

354. 相对屏幕坐标 [ 86%]

...到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 189*****192 localToGlobal和globalToLocal是局部转全局和全局转局部,你可以用着两个方法,让豆或道具的坐标变成相对于屏幕的坐标! 2017-05-04 1 3 分享 微博 QZONE ...

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

355. laya.display.cmd.DrawRoundRectCmd_API3.0 [ 86%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawRoundRectCmd" DrawRoundRectCmd Class DrawRoundRectCmd Hierarchy DrawRoundRectCmd Index Properties fillColor height ...

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

356. 怎样获取鼠标/触摸当前坐标 [ 86%]

... 赞同来自: qwer535305054 function getMousePos(ev) {    var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;    var scrollY = document.documentElement.scrollTop || document.body.scrollTop;    var x = ev.pageX || ev.clientX + scrollX;    var...

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

357. shader 问题[关闭] [ 86%]

...展里面 类似      attribute vec2 position;     attribute vec2 texcoord;     attribute vec4 color;     uniform vec2 size;     uniform mat4 mmat;     varying vec2 v_texcoord;varying vec4 v_color;     void main(){       vec4 pos =mmat*vec4(position.x,position.y,0,1);       gl_P...

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

358. 3D中摄像机绕物体旋转该如何实现? [ 86%]

...ponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. ///...

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

359. laya 3D碰撞器与 Unity 不一致问题 [ 86%]

...致问题 Laya 碰撞器偏移Bug一 首先为下图上面的Cube添加 Box碰撞器和钢体 当cube scale为 1 :1:1时将图中上方的Cube碰撞器偏移 laya预览效果与Unity运行效果一致   将下图上方的cube Transform属性的Scale 设置为5:1:1的比例将X轴 Scale 拉伸5...

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

360. 为什么Laya.Panel的子节点在(0,0)位置会不显示呢? [ 85%]

...到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 看下你的代码或者给个例子,子节点再00处,应该是没有问题的! 2017-02-17 0 2 分享 微博 QZONE 微信 Devilsparta 赞同来自: var panel = new Laya.Panel(); panel.width = 80...

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