大约有 256 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0068 秒)
Laya3.0_api(75) Laya_社区(60) Laya2.0_api(45) laya_api(38) Laya3.0_文档(20) Laya2.0_文档(15) Laya2.0_示例(2) Laya_示例(1)
...okeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水平对齐方式 line-height:20px; 行高 background-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽...
来源: Laya2.0_api 发布时间: 20190513
...unction Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = null; //背景右边补丁 this.rightBg = null; //当前地板上面的物品集合 this.itemList = ; Floor.__...
来源: Laya_社区 发布时间: 20160803
...碰撞区域 var hitRadius = role1.hitRadius = role2.hitRadius; // 根据距离判断是否碰撞 if(Math.abs(role1.x - role2.x) < hitRadius && Math.abs(role1.y - role2.y) < hitRadius){ // 碰撞后掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循...
来源: Laya_社区 发布时间: 20170525
...碰撞区域 var hitRadius = role1.hitRadius = role2.hitRadius; // 根据距离判断是否碰撞 if(Math.abs(role1.x - role2.x) < hitRadius && Math.abs(role1.y - role2.y) < hitRadius){ // 碰撞后掉血 lostHp(role1,1); lostHp(role2,1); } } } } // 如果主角死亡,停止游戏循...
来源: Laya_社区 发布时间: 20170525
...线来确定在3维世界的平面朝向,可以通过偏移值来调整距离原点的偏移多少。API说明如图2-17所示。 (图2-17) 通过API,我们可以看到normal是一个3维向量值,表示着平面的法线。例如这个值为Vector3(0, 1, 0),则表示法线位于Y轴正...
来源: Laya3.0_文档 发布时间: 20251010
... elasticDistance:Number (default = 0) — (可选)橡皮筋效果的距离值,0为无橡皮筋效果,默认为0,可选。 elasticBackTime:int (default = 300) — (可选)橡皮筋回弹时间,单位为毫秒,默认为300毫秒,可选。 data:* (default = null) — (可选...
来源: Laya2.0_api 发布时间: 20190513
...线来确定在3维世界的平面朝向,可以通过偏移值来调整距离原点的偏移多少。API说明如图11-1所示。  (图11-1) 通过API,我们可以看到normal是一个3维向量值,表示着平面的法线。例如这个值为`Vector3(0, 1, 0)`,则表...
来源: Laya2.0_文档 发布时间: 20210715
...调用 move 方法并传入移动向量,角色会按照指定的方向和距离进行移动。 当需要停止的时候,不仅仅是停止调用move移动向量。还要将move的移动向量重置为零向量。否则会一直基于最后一次设置的向量移动。 代码设置示例如下...
来源: Laya3.0_文档 发布时间: 20251010
... Default value elasticDistance: number = 0 (可选)橡皮筋效果的距离值,0为无橡皮筋效果,默认为0,可选。 Default value elasticBackTime: number = 300 (可选)橡皮筋回弹时间,单位为毫秒,默认为300毫秒,可选。 Default value data: any = null (可...
来源: Laya3.0_api 发布时间: 20231115
...okeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水平对齐方式 line-height:20px; 行高 background-color:#ff0000; 背景颜色 border-color:#ff0000; 边框颜色 width:100px; 对象宽...
来源: Laya3.0_api 发布时间: 20231102