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

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

11. 材质的加载(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 78%]

...质加载 BaseMaterial.load("res/skyBox2/skyBox2.lmat",Handler.create(this,function(mat:BaseMaterial):void { var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空盒的mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; })); ``` ![](img/1.png)(图1...

来源: Laya2.0_文档 发布时间: 20210715

12. 图片mask失效问题. [ 78%]

... photoimg.loadImage(imgn,0,0,500,500);    Laya.timer.once(1000, this, function():void{     maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500);         }); 延时加载  的效果. 模拟加载的东西很多的时候 2016-09-23 0 8 分享 微博 QZONE 微信 为...

来源: Laya_社区 发布时间: 20160923

13. 3d获取组件代码bug [ 77%]

... *@param components 组件输出队列。 */ __proto.getComponentsByType=function(type,components){ var index=this._componentsMap.indexOf(type); if (index===-1) components.length=0; //这里应该返回了!!!!!!!!!! var typeComponents=this._typeComponentsIndices[index]; var count=typeComponents.leng...

来源: Laya_社区 发布时间: 20170630

14. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 76%]

...地图的div容器 ``` ### 二、接着是构造函数: ```java public function WatchPosition() { Laya.init(11);   init();   // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); ...

来源: Laya2.0_文档 发布时间: 20210715

15. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 75%]

...ESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu &&am...

来源: Laya_社区 发布时间: 20180525

16. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 75%]

...在这里绑定了该函数的作用域。 ##### 2.1 init函数: ```java function init() { mapDiv = Laya.Browser.createElement("div"); Laya.Browser.document.body.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Laya.Event.RESIZE, this, refit); // 初始化地图 map = new BMap.M...

来源: Laya2.0_文档 发布时间: 20210715

17. 加载的时候动画会卡 [ 74%]

加载的时候动画会卡 上代码: _pro.startLoad = function() {         this.loadLayer = new Lload();         this.big.addChild(this.loadLayer);         var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",...

来源: Laya_社区 发布时间: 20160815

18. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 72%]

...yer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : h...

来源: Laya_社区 发布时间: 20190312

19. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 72%]

...个问题: 1、在MiniFileMgr.readFile函数中: MiniFileMgr.readFile=function(filePath,encoding,callBack,readyUrl,isSaveFile,fileType){ (encoding===void 0)&& (encoding="ascill"); (readyUrl===void 0)&& (readyUrl=""); (isSaveFile===void 0)&& (isSaveFile=false); (fileType==...

来源: Laya_社区 发布时间: 20180604

20. 刚体贴图调用问题 [ 71%]

...A.layaSprite = img1; bodyA.id = i; Matter.World.add(engine.world,bodyA); } Function{ for(let i=0;i <5; i++){ if(bodyA.speed != 0){ (?????????????????); } } }代码的主要意思就是这样,缺少的代码请忽略,就是在问号处如何写代码使速度不为0的刚体所绑定的img2执...

来源: Laya_社区 发布时间: 20180901