大约有 215 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
Laya_社区(67) Laya3.0_api(60) Laya_示例(29) Laya3.0_文档(15) laya_api(14) Laya2.0_文档(11) Laya2.0_api(10) Laya2.0_示例(9)
...示。 (图2-2) js目录 与 libs目录: 项目代码和引擎库。 resources目录 与 Scene.ls: resources资源目录和场景文件Scene.ls,小游戏由于初始包的限制,建议将初始包的内容在规划好,最好能放到统一的目录下,便于初始包的剥离。 game...
来源: Laya3.0_文档 发布时间: 20251010
...null; if(((Loader.loadedMap[i])instanceof laya.resource.Texture )){ t=Loader.loadedMap[i]; t.destroy(); } delete Loader.loadedMap[i]; ...
来源: Laya_社区 发布时间: 20170113
...; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.RenderTexture; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event...
来源: Laya_示例 发布时间: 20251130
...de = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loa...
来源: Laya_示例 发布时间: 20251130
....Stage; import laya.events.Event; import laya.maths.Rectangle; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Interaction_Drag { private const ApePath:String = "../../res/apes/monkey2.png"; private var ape:Sprite; private var...
来源: Laya2.0_示例 发布时间: 20251130
...lClasspublic class TrailMaterialInheritanceTrailMaterial BaseMaterial laya.resource.Resource TrailMaterial 类用于实现拖尾材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 BaseMater...
来源: Laya2.0_api 发布时间: 20190513
...lasspublic class EffectMaterialInheritanceEffectMaterial BaseMaterial laya.resource.Resource EffectMaterial 类用于实现Mesh特效材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 Base...
来源: Laya2.0_api 发布时间: 20190513
...起来,单一复用? 3d资源引用计数经常不正确,导致使用Resource.destroyUnusedResources()出错 texture的引用计数是如何计数的? Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 clearRes则采用引用计数...
来源: Laya_社区 发布时间: 20201103
....loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){ sprite.graphics.clear(); sprite.graphics.drawTexture(texture,0,0,50,50); sprite.autoSize = true; })); Laya.stage.addChild(sprite); 或者用Image: var image:laya....
来源: Laya_社区 发布时间: 20160711
...据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字节开始读取...
来源: Laya3.0_文档 发布时间: 20230303