大约有 207 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0041 秒)
Laya_社区(89) Laya3.0_api(65) Laya2.0_文档(23) Laya_示例(18) Laya3.0_文档(9) laya_api(1) Laya2.0_api(1) Laya2.0_示例(1)
...着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stag...
来源: Laya_社区 发布时间: 20220815
...毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源...
来源: Laya2.0_文档 发布时间: 20210715
...nsions Extras Methods RegisterExtra UnRegisterExtra _createMesh _createMeshSprite3D _createSceneNode _createSkinnedMeshSprite3D _createSprite3D _createdefaultMaterial applyPBRMetallicRoughness applyTransform calSkinnedSpriteLocalBounds getAccessorComponentsNum getAnimationRoot getAttributeNum getBuf...
来源: Laya3.0_api 发布时间: 20231102
...毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源...
来源: Laya2.0_文档 发布时间: 20210715
...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_示例 发布时间: 20241118
...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_示例 发布时间: 20241118
...毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用的材质,纹理,网格并不会跟随精灵的销毁而一起销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源...
来源: Laya2.0_文档 发布时间: 20210715
...tionAll Packages | All Classes | Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher Object T...
来源: laya_api 发布时间: 20170929
....create(null, function(tex:Texture2D):void { //使用纹理 var earth1:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))) as MeshSprite3D; earth1.transform.translate(new Vector3(10, 20, -8)); var earthMat:BlinnPhongMaterial = new BlinnPhongMaterial(); earthMat.alb...
来源: Laya2.0_文档 发布时间: 20210715
...leteHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.position = new Laya.Vector3(-0.6, 0, 0); var dude2 = Laya.Sprite3D.instantiate(dude1, this.scene, false, new Laya.Vector3(0.6, 0, 0)); var skinned...
来源: Laya_示例 发布时间: 20241118