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

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

1. 灯光-方向光 [ 100%]

...= new Laya.Vector3(0, -1.0, -1.0); var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, funct...

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

2. 灯光-点光 [ 99%]

...0.0, 3.0); pointLight.range = 3.0; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, funct...

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

3. 灯光-聚光 [ 98%]

....range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, funct...

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

4. 动画-新版骨骼动画 [ 97%]

... new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/new/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () {...

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

5. 动画-图集动画 [ 93%]

...aya.Animation; var Stage = Laya.Stage; var Rectangle = Laya.Rectangle; var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var AniConfPath = "../../res/fighter/fighter.json"; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Brows...

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

6. 高级应用-寻路导航 [ 91%]

...AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删...

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

7. 动画-SWF动画 [ 88%]

...vieClip(); })(); function createMovieClip() { var mc = new MovieClip(); mc.load(SWFPath); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; Laya.stage.addChild(mc); } })();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = L...

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

8. 照相机-3D空间转2D空间 [ 81%]

...lse); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMon...

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

9. 性能测试-虫子(慎入) [ 80%]

...ng, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, onTextureLoaded)); })(); function onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggot...

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

10. Sprite3D-Sprite3D变换 [ 79%]

...); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonk...

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