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

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

101. 高级应用-闪光 [ 74%]

...litter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime = 1.3; glitterTemplet.minSegmentDistance = 0.1; glitterTemplet.minInterpDistance = 0.6; ...

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

102. laya.loaders.TextureLoader_API3.0 [ 74%]

...Returns Promise<Texture> wrapTex2D wrapTex2D(task: ILoadTask, tex2D: Texture2D): Texture Defined in laya/loaders/TextureLoader.ts:213 Parameters task: ILoadTask tex2D: Texture2D Returns Texture Globals "laya/loaders/TextureLoader" RenderTextureLoader Texture2DLoader TextureLoader load wrapTex2...

来源: Laya3.0_api 发布时间: 20231115

103. localRotationEulerY旋转位置错误 [ 74%]

...  var planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void {             planeMat.albedoTexture = tex;         }));         //设置纹理平铺和偏移...

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

104. material材质平铺 [ 74%]

material材质平铺 建了一个3D的平面模型,用的是Laya.Texture2D.load加载的图片纹理, 然后给它加了一个var material = new Laya.StandardMaterial();材质 material 创建的贴图材质,这样能平铺吗? var plane = this.scene.addChild(new Laya.MeshSprite3D(new Laya.P...

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

105. 射线检测-点击行走 [ 74%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

106. 有关Laya3D碰撞检测疑问 [ 74%]

...dardMaterial = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider) as Laya.BoxCollide...

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

107. 使用 setPixels 设置像素,会同时修改掉其他图片的像素 [ 74%]

...会同时修改掉其他图片的像素;就几句代码 let bitmap:Laya.Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。de...

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

108. 如何用canvas 作为Texture呢 [ 74%]

...用canvas 或者WebGL 两种模式对使用引擎有什么区别? 请问Texture2D如何用base64字符串构建对象 Texture如何转换成Texture2D有人搞过吗 如何用代码调用按钮的点击事件(如as3的dispatchEvent)? laya2.0如何用命令行执行清理并导出功能 Laya.l...

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

109. texture中的UV中有8个值,这8个值都指的什么呢 [ 74%]

... 无法添加新回复 发起人 fengzv 相关问题 Texture如何转换成Texture2D有人搞过吗 BoneSlot 对象 showSlotData 无效 texture 替换后显示错误! Texture,和Texture2D如何互转? 微信真机下游戏MAX_TEXTURE_SIZE 微信小游戏 sharedCanvas 创建的Texture,能否再...

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

110. laya.net.Loader_API3.0 [ 73%]

...CHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearTextureRes clearUnLoaded event fetch getRes hasLi...

来源: Laya3.0_api 发布时间: 20231115