大约有 335 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya3.0_api(110) Laya2.0_api(67) Laya_社区(65) laya_api(61) Laya2.0_文档(16) Laya3.0_文档(14) Laya2.0_示例(1) Laya_示例(1)
... laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不...
来源: Laya2.0_文档 发布时间: 20210715
...ss(myShaderSprite, "myShaderSprite", _super); /* 初始化此类 texture纹理对象 vb顶点数组 ib顶点索引数组 */ myShaderSprite.prototype.init = function(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(...
来源: Laya_社区 发布时间: 20180619
...图的预加载: {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3...
来源: Laya_社区 发布时间: 20170505
...ediately dict fontSize letterSpacing lineHeight lock maxWidth name padding texture tint url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event...
来源: Laya3.0_api 发布时间: 20231115
...对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触发正常,如果我想使用Loader.getRes 来载入缓存的图片应如何处理. 2017-10-24 添加评论 免费...
来源: Laya_社区 发布时间: 20171024
...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2DArray" Texture2DArray Class Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel ...
来源: Laya3.0_api 发布时间: 20231115
... 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20201021
...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...
来源: Laya2.0_文档 发布时间: 20210714
...) 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
...material = mat; //设置场景的反射贴图 scene.customReflection = mat.textureCube; //设置曝光强度 var exposureNumber = 0; mat.exposure = 0.6 + 1; })); ..... //加载Mesh Laya.Mesh.load("res/threeDimen/staticModel/teapot/teapot-Teapot001.lm", Laya.Handler.create(null, function(mesh){ teapo...
来源: Laya2.0_文档 发布时间: 20210715