• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 315 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)

181. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 60%]

...。 ```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

182. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 60%]

...正确获取宽高。 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

183. laya.net.LoaderManager [ 60%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: laya_api 发布时间: 20170929

184. 透明区域点击问题 [ 60%]

...域点击问题 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

185. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 59%]

..., 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

186. Laya IDE横竖屏切换时,不断刷新 [ 59%]

...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

187. 怎么调用UI界面的属性 [ 59%]

...载所有资源都失败 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

188. 微信小游戏加载资源问题 [ 59%]

...) { 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

189. laya.events.EventDispatcher [ 59%]

...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

190. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 59%]

........前面摄影机,猴子精灵相关操作忽略 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