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

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

501. Unity插件导出后获取了Scene子集 [ 64%]

...如下: var scene = Laya.Scene.load("res/LayaMain/main.ls") Laya.stage.addChild(scene); var camera: Laya.Camera = (scene.getChildByName("Main Camera")) as Laya.Camera;//camera为空   附件 : --> LayaAirPjt.rar 2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

502. Video is not a construction [ 64%]

...否支持 WebRTC 影音直播 请问video可以像其他组件一样使用addChild添加到panel中么 可以在video里面在添加一个video显示吗,如何把UI显示在video之上 video加载问题 LAYA2.0 native 支持 video 官方的例子都没法播放。。 LayaNative2.0.3 -video播...

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

503. 关于纹理的显示问题 [ 64%]

...e.graphics.drawTexture(texture, 0, 0,texture.width,texture.height); this.addChild(sprite);  }      LayaUISample.max.js:19468 Uncaught TypeError: Cannot read property 'width' of undefined     at Texture.moveUV (LayaUISample.max.js:19468)     at GraphicsGL.__proto.drawTexture (LayaUISample.m...

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

504. 加载网页图片地址有的显示 [ 64%]

...ivElement = new Laya.HTMLDivElement(); p.name == "headIcon"; this.img_head.addChild(p); var html: string = "<img src='" + imgUrl + "'/>";// style='width:96;height:96' />"; p.innerHTML = html; 其他的大部分图片这两种方案都是没问题可以正常显示的。麻烦帮忙看一下...

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

505. laya加载unity插件导出的场景 physics3D is not a function [ 64%]

...ndler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.position=new Laya.Vect...

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

506. Laya 绑定显示内容到骨骼动画 [ 64%]

...List.indexOf(source); if(index<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frameLoop(1,this,this.__updateBinds); }  unbind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找到要删除的绑定内容");...

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

507. spine动画放大后,遮罩显示正常 [ 64%]

...    let mArmature = mFactory.buildArmature(1);         parent.addChild(mArmature);         mArmature.pos(parent.x+parent.width/2, parent.y+parent.height/2);         mArmature.scale(3, 3);         mArmature.on(Laya.Event.STOPPED, this, this.completeHandler);    ...

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

508. 人物行走图动画 [ 64%]

...-1,2,可是在经过play后面自动变成1,还有经过Laya.stage.addChild(ani);后面自动+1,大明白 ani.index 是从几开始的,还有他有什么作用   代码如下: Laya.init(800,600); var Animation = laya.display.Animation; var Stage     = laya.display.Stage; var Rec...

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

509. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 64%]

...; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数仅仅接收地址形式的url还接受base64和svg的格式...

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

510. 加载unity导出的.lh文件报错! [ 64%]

...var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh");this.scene.addChild(sprite3D);} 2018-09-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 130*****543 相关问题 unity导出粒子文件问题 从unity导出的场景透贴...

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