大约有 2,984 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
Laya_社区(2430) Laya2.0_文档(172) Laya3.0_api(101) Laya_示例(79) Laya3.0_文档(65) Laya2.0_api(55) laya_api(42) Laya2.0_示例(40)
...", "../../res/ui/checkbox (5).png", "../../res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, onCheckBoxSkinLoaded)); })(); function onCheckBoxSkinLoaded() { var cb; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.st...
来源: Laya_示例 发布时间: 20251209
...at:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设...
来源: Laya2.0_文档 发布时间: 20210715
...质 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); //设置材质 pl...
来源: Laya2.0_文档 发布时间: 20210714
...t = "当前地图:" + this.big_map.selectedLabel } else { var dia1 = new loading() dia1.confirm.label = "大秘境钥匙不足" dia1.loading_desc.text = "可在小秘境挂机获取" dia1.confirm.on(Laya.Event.MOUSE_UP, this, dai1, [dia1]) dia1.popup() // this.big_map.selectedIndex = 0 } } } 两...
来源: Laya_社区 发布时间: 20180719
...加自定义模型 var mesh = scene.addChild(new Laya.Sprite3D.load("res/dg/dg.lh")); mesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { setMeshParams(sprite, Laya.StandardMaterial.RENDERMODE_CUTOUT, new Vector4(3.5, 3.5, 3.5, 1.0), new Vector3(0.6, 0.6...
来源: Laya_社区 发布时间: 20170718
...lor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完...
来源: Laya_社区 发布时间: 20171120
[LayaAir3]Laya.loader.loadPackage加载分包,如果判断成功与失败 测试代码,无论sub111是否存在,都会打印“pack sub1 loaded”,请问如何判断是否加载分包成功或失败? Laya.loader.loadPackage("sub1111").then(() => { console.log('p...
来源: Laya_社区 发布时间: 20250909
...eta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游...
来源: Laya_社区 发布时间: 20180323
....skeleton.pos(parseInt (npcPos[0]), parseInt (npcPos[1])); this.skeleton.load (this.curNpcInfo.npcPath); 附件 : --> 70003.zip 2019-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron 赞同来自: ...
来源: Laya_社区 发布时间: 20190516
...stage.width,height:Laya.stage.height,matrix:Laya.stage._canvasTransform},isLoad:false}); }); } //激活资源版本控制 beginLoad(); } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLo...
来源: Laya_社区 发布时间: 20180525