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

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

1. 性能测试-卡通人物2 [ 100%]

... character1 = [ "../../res/cartoon2/yd-6_01.png", "../../res/cartoon2/yd-6_02.png", "../../res/cartoon2/yd-6_03.png", "../../res/cartoon2/yd-6_04.png", "../../res/cartoon2/yd-6_05.png", "../../res/cartoon2/yd-6_06.png", "../../res/cartoon2/yd-6_07.png", "../../res/cartoon2/yd-6_08.png", ]; var chara...

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

2. Sprite-旋转缩放 [ 88%]

... } function animate(e) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL...

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

3. 射线检测-放置物体 [ 74%]

...tate(new Laya.Vector3(0, 90, 0), false, false); } }); })();class RayPicking02 { private ray: Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); private point: Laya.Vector2 = new Laya.Vector2(); private _outHitInfo: Laya.RaycastHit = new Laya.RaycastHit(); private _positio...

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

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

...re2(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/ground_02.jpg")); customMaterial.setDiffuseTexture3(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/ground_03.jpg")); customMaterial.setDiffuseTexture4(Laya.Texture2D.load("../../res/threeDimen/scene/terrain/terrain/...

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