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

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

1. UI-Tree [ 100%]

...类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_t...

来源: Laya_示例 发布时间: 20241118

2. 射线检测-射线检测 [ 94%]

....Layer.getLayerByNumber(10); sprite3d3.layer = Laya.Layer.getLayerByNumber(13); sprite3d4.layer = Laya.Layer.getLayerByNumber(13); /** * 给精灵添加碰撞器组件 * BoxCollider : 盒型碰撞器 * SphereCollider : 球型碰撞器 * MeshCollider : 网格碰撞器 */ var sprite3d1MeshCollider = s...

来源: Laya_示例 发布时间: 20241118

3. 高级应用-闪光 [ 85%]

...in(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scaleValue * 20) * 2; glitter.addGlitterByPositions(pos1, pos2); }class GlitterDemo { private glitter: Laya.Glitter; private pos1: Laya.Vector3...

来源: Laya_示例 发布时间: 20241118

4. 自定义shader-地形shader [ 83%]

...or2(27.92727, 27.92727)); customMaterial.setDiffuseScale2(new Laya.Vector2(13.96364, 13.96364)); customMaterial.setDiffuseScale3(new Laya.Vector2(18.61818, 18.61818)); customMaterial.setDiffuseScale4(new Laya.Vector2(13.96364, 13.96364)); customMaterial.setAmbientColor(new Laya.Vector3(1, 1, 1)); cu...

来源: Laya_示例 发布时间: 20241118

5. 性能测试-卡通人物2 [ 69%]

...eLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = value; } Character.prototype.setName = function(value) { nameLabel.t...

来源: Laya_示例 发布时间: 20241118