大约有 315 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(213) Laya3.0_api(22) Laya2.0_文档(22) Laya3.0_文档(21) Laya_示例(16) Laya2.0_示例(15) laya_api(3) Laya2.0_api(3)
...。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时...
来源: Laya2.0_文档 发布时间: 20210715
...正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.hei...
来源: Laya2.0_文档 发布时间: 20210714
...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...
来源: laya_api 发布时间: 20170929
...域点击问题 var sprite0 = new Sprite(); sprite0.graphics.drawTexture(Loader.getRes("comp/image.png")); sprite0.pos(10, 10); sprite0.mouseEnabled = true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可点,有像...
来源: Laya_社区 发布时间: 20170428
..., 0); box.transform.rotate(new Laya.Vector3(90, 0, 0), false, false); Laya.loader.load(this.AllPng,new Laya.Handler(this,this.onCallBack),null,Laya.Loader.BUFFER); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onKey); //######################################################################## } private...
来源: Laya_社区 发布时间: 20220815
...a.stage.scaleMode = 'exactfit'; Laya.stage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费...
来源: Laya_社区 发布时间: 20180416
...载所有资源都失败 HttpRequest 调用webserivece 引擎1.7.18 新增Loader的preLoadedMap属性怎么用 问题状态 最新活动: 2017-03-18 09:24 浏览: 1519 关注: 2 人 Laya_XS • 2017-03-18 09:59 实例化你的ui页面,然后通过ui实例操作页面的属性或方法! h69075964...
来源: Laya_社区 发布时间: 20170203
...) { if (window.navigator.userAgent.indexOf('MiniGame') < 0) { Laya.Laya.loader.load(fileUrl, callBack); } else { if (fileType == Laya.Loader.IMAGE || fileType == Laya.Loader.SOUND) MiniFileMgr.downOtherFiles(fileUrl, callBack, fileUrl, true, false); else MiniFileMgr.downFiles(fileUrl, encoding, c...
来源: Laya_社区 发布时间: 20200103
...ss EventDispatcherInheritanceEventDispatcher ObjectSubclasses HttpRequest, Loader, LoaderManager, Node, Socket, Sound, SoundChannel, Texture, TimeLine EventDispatcher 类是可调度事件的所有类的基类。 Public Methods MethodDefined By event(type:String, data:* = null):Boolean 派发...
来源: Laya2.0_api 发布时间: 20190513
........前面摄影机,猴子精灵相关操作忽略 var heightMap = Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png"); //初始化MeshTerrainSprite3D this.terrainSprite = MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.meshFilter.sharedMesh as Mesh, heightMap...
来源: Laya2.0_文档 发布时间: 20210714