大约有 581 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(357) Laya2.0_文档(64) Laya3.0_api(54) Laya_示例(32) Laya2.0_api(22) laya_api(20) Laya3.0_文档(19) Laya2.0_示例(13)
...下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTextur...
来源: Laya_社区 发布时间: 20170804
...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...
来源: Laya2.0_文档 发布时间: 20210714
... 6, 10, 10))); 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 boxCollider = plane.addComponent(Laya.BoxCollider); bo...
来源: Laya_示例 发布时间: 20251130
...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...
来源: Laya2.0_文档 发布时间: 20210715
...同一后缀不同作用的资源。 //例如,图片xxx.png被定义为TextureCube,使用load("xxx.png", Laya.Loader.TEXTURECUBE)。得到的是TextureCube。 }); 1.2 加载多个资源(用数组) var url1 = "xxx.png"; var url2 = "xxxxx.png"; var type1 = Laya.Loader.IMAGE; var type2 = Laya.L...
来源: Laya3.0_文档 发布时间: 20251010
...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...
来源: Laya2.0_文档 发布时间: 20210714
用ide打包后的图片,Texture显示不出来? Sprite和Image可以显示出来,Texture报错、、、说找不到图片 代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){ var aa = new Sprite(); Laya.sta...
来源: Laya_社区 发布时间: 20171226
...() { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMaterial1.setMarginalColor(new Laya.Vector3(1, 0.7, 0)); var customMaterial2 = new CustomMaterial(); customMaterial2.setDiffuseTe...
来源: Laya_示例 发布时间: 20251130
...) export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图片 */ loadTexture(url: strin...
来源: Laya3.0_文档 发布时间: 20251010
...I DocumentationAll Packages | All Classes | Index | Frames No Frames Texture2DProperties | Methods Packagelaya.d3.resourceClasspublic class Texture2DInheritanceTexture2D BaseTexture laya.resource.Resource Texture2D 二维纹理。 Public Properties Hide Inherited Public Properties Show Inher...
来源: laya_api 发布时间: 20170929