大约有 187 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0047 秒)
Laya_社区(59) Laya3.0_api(43) Laya_示例(27) Laya3.0_文档(16) Laya2.0_api(15) laya_api(15) Laya2.0_文档(12)
...ght.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../....
来源: Laya_示例 发布时间: 20241117
用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% import s3d = Laya.Sprite3D; static s3ds:{[key:string]:s3d;} = {}; static news3d(id):s3d{ return x.s3ds[id].clone() as s3d;//s3d.instantiate(x.s3ds[id]); } static loads3d(id, path, handler=null):void{ s3d.load(path, Laya....
来源: Laya_社区 发布时间: 20191004
LayaAir引擎 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted)); public loadCompleted(sp:Laya.Sprite3D):void { this._loaded = true; ...
来源: Laya_社区 发布时间: 20200609
...url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: ...
来源: Laya_示例 发布时间: 20241117
... Events Packagelaya.d3.terrainClasspublic class TerrainInheritanceTerrain Sprite3D Node EventDispatcher Object Terrain 类用于创建地块。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node...
来源: Laya2.0_api 发布时间: 20190513
...ackagelaya.d3.coreClasspublic class VRCameraInheritanceVRCamera BaseCamera Sprite3D ComponentNode Node EventDispatcher Object Camera 类用于创建VR摄像机。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是...
来源: laya_api 发布时间: 20170929
..._path = UrlConfig.EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ ...
来源: Laya_社区 发布时间: 20180601
...onLight.color = new Laya.Vector3(1, 1, 1); var earth = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/earth/EarthPlanet.lh")); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); vrCamera.sky = skyBox; va...
来源: Laya_示例 发布时间: 20241117
...angZi/PangZi-doubipangzi.lm"], Laya.Handler.create(this, onComplete)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.addChild(new Laya.MeshSpr...
来源: Laya_示例 发布时间: 20241117
...s, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new Laya.Vector3(0, 0, 0)); layaMonkey3 = scene.addChild(Laya.Sprite3D.instantiate(...
来源: Laya_示例 发布时间: 20241117