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

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

1. texture2DsetPixel纹理rgba数据之后会随着窗口缩放,渐变成黑色 [ 100%]

...着窗口缩放,渐变成黑色 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

2. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D内存管理) [ 97%]

...毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用材质,纹理,网格并不会跟随精灵销毁而一起销毁。这些残留下资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源...

来源: Laya2.0_文档 发布时间: 20210715

3. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D内存管理) [ 97%]

...毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用材质,纹理,网格并不会跟随精灵销毁而一起销毁。这些残留下资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源...

来源: Laya2.0_文档 发布时间: 20210715

4. 高级应用-寻路导航 [ 96%]

...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_示例 发布时间: 20240930

5. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D内存管理) [ 95%]

...毁释放内存 ###### *version :2.0.2beta Update:2019-5-8* ​ Scene3D、Sprite3D在调用 `destroy()` 之后,精灵所引用材质,纹理,网格并不会跟随精灵销毁而一起销毁。这些残留下资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源...

来源: Laya2.0_文档 发布时间: 20210715

6. laya.d3.core.MeshTerrainSprite3D [ 95%]

...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

7. 自定义shader-边缘光照shader [ 95%]

...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_示例 发布时间: 20240930

8. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 94%]

....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

9. Sprite3D-Sprite3D加载 [ 92%]

...ya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Sprite3DLoad { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_N...

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

10. Sprite3D-Sprite3D克隆 [ 90%]

...onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite3d var layaMo...

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