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

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

81. worker.js 使用问题 [ 81%]

...text': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:33519)     at Texture2D.__proto.recreateResource (laya.d3.js:33562)     at Texture2D.__proto.activeResource (laya.core.js:13234)     at Texture2D.<anonymous> (laya...

来源: Laya_社区 发布时间: 20171120

82. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 81%]

...:PBRStandardMaterial = new Laya.PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Te...

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

83. laya.d3.resource.TextureGenerator [ 81%]

...thods  MethodDefined By  TextureGenerator()TextureGenerator  _generateTexture2D(texture:Texture2D, textureWidth:int, textureHeight:int, func:Function):void[static] TextureGenerator  haloTexture(x:int, y:int, maxX:int, maxY:int, index:int, data:Uint8Array):void[static] TextureGenerator  ligh...

来源: Laya2.0_api 发布时间: 20190513

84. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 81%]

...; var WebGL = Laya.WebGL; var texture1 = "../../res/apes/monkey2.png"; var texture2 = "../../res/apes/monkey3.png"; var flag = false; var ape; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; ...

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

85. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 80%]

...同来自: 请问具体是怎样实现的? 我也遇到了这个问题 Texture2D.load("res/env/mountain1_3.png", Handler.create(null, function(tex:Texture2D):void {             menu_sprite_jian.graphics.drawTexture(tex,0,0);             }));这样然后无法drawtexture报...

来源: Laya_社区 发布时间: 20190508

86. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 80%]

... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...

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

87. 寻路导航示例中添加Laya.PathFind组件报异常 [ 80%]

...行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Laya.Texture2D; //初始化MeshTerrainSprite3D this.terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSpri...

来源: Laya_社区 发布时间: 20180309

88. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 79%]

...url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.Loader.TEXTURE2D; Laya.loader.load([url1, url2]).then((res:Array<any>)=> { //加载多个,不带类型 }); Laya.loader.load([url1, url2], type).then((res:Array<any>)=> { //加载多个,统一设置类型 }); La...

来源: Laya3.0_文档 发布时间: 20230406

89. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 79%]

...Texture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya....

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

90. laya.d3.core.HeightMap [ 79%]

...ber) 创建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图...

来源: laya_api 发布时间: 20170929