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

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

721. 分享:截屏! [ 80%]

...;             //随意绘制显示对象             sp= new Sprite();             sp.loadImage("logo.png");             Laya.stage.addChild(sp);         }                  private function onClick():void         {             //HT...

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

722. VR摄像机怎么设置坐标跟拍摄角度? [ 80%]

...R摄像机怎么设置坐标跟拍摄角度? var camera = scene.addChild(new Laya.VRCamera( 0.03, 0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(93, 64, -33)); camera.transform.rotate(new Laya.Vector3(0.05, 155, 0), true, false); camera.clearColor = null; camera.addComponent(VRCamer...

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

723. 骨骼动画-藤蔓 [ 80%]

...t = Laya.Event; const mAniPath = "res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // ...

来源: Laya2.0_示例 发布时间: 20260303

724. 分享个资源加载的方法,类似白鹭的加载方式 [ 80%]

...tatic _res:RES; public static getInstance():RES{ if(!RES._res){ RES._res = new RES(); } return RES._res; } /** * 加载资源配置文件 */ public static loadResJson(srcName: string,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){ if(arg){ RES.groups = arg...

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

725. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 80%]

...码  class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this...

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

726. DialogManager怎么添加遮罩层 [ 80%]

DialogManager怎么添加遮罩层 var dialogManager =new DialogManager(); var sprite1=new Laya.Sprite(); sprite1.loadImage("scdlb/首充大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manage...

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

727. demo截图是黑屏 [ 80%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 new miracle 相关问题 Layabox 2.0 bate5 运行编译之后 bundle.js 文件里面没有使用命名空间类文件的定义!导致运行时 找不到类的定义!这是为什么? 已上传 Demo 附件 2.2.0beta4 发布...

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

728. 摄像机的移动和旋转(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 80%]

...0.1最近看到的距离,100最远看到的距离。 var camera:Camera = new Camera(0, 0.1, 100) //移动相机,设置相机的向z轴移动 3。true代表是局部坐标,false是相对世界坐标。 camera.transform.translate(new Vector3(0, 0, 3),false); //加载到场景 scene.addChild(came...

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

729. websocket连接出错 [ 80%]

...0,Laya.WebGL); // var socket = io.connect('10.10.1.103:8081'); this.byte = new Laya.Byte(); this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://10.10.1.103:8888"); // this.socket.conn...

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

730. 骨骼动画-橡胶人 [ 80%]

...a.Event; const mAniPath = "res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // ...

来源: Laya2.0_示例 发布时间: 20260303