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

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

581. 陀螺仪与加速计 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

..."#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.fl...

来源: Laya3.0_文档 发布时间: 20251010

582. 文字显示模糊 [ 62%]

...+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,为什么呢?   2018-02-01 0 1 分享 微博 QZONE 微信 186*****590 赞同来自: 同问,...

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

583. 安卓机截图变成黑块,ios和pc没问题 [ 62%]

...r sp2:Sprite = new Sprite(); sp2.graphics.drawTexture(texture); Laya.stage.addChild(sp2); }); } 附件 : --> 2018-11-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 panda-星 赞同来自: 我也遇到这问题...

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

584. HTMLCanvas如何挂载 [ 62%]

...eate=new HTMLCanvas("2D");      div.size(600,400);      Laya.stage.addChild(div);      console.log(div);   报错截图: 2018-06-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 谢 相关问题 layaide 1.7.x typescript...

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

585. dialog第一次可以正常调出,第二次无法正常popup出来 [ 62%]

...ew LoginView();         loginView.init();         Laya.stage.addChild(loginView);     } LoginView.js中的init函数     LoginView.prototype.init = function () {         this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg);         this.btnLogin.on(Laya.Event.CLICK...

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

586. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 62%]

...交 2 个回复 hj 赞同来自: var logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.wi...

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

587. 二次开发的问题 [ 62%]

...aya.init(300,300) //这是舞台大小 var btn=new Laya.Spirte; Laya.stage.addChild(btn); btn.on() //这个就可以绑定事件

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

588. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 62%]

...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...

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

589. 为unity导出的场景种的模型添加碰撞器失败 [ 62%]

...1 = Laya.loader.getRes("3D/LayaScene_map/Conventional/map.ls"); Laya.stage.addChild(this.scene1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localScale = scale; let a = this.myCar.addComponent(Laya.PhysicsCollider); }报错如附件...

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

590. layair3d怎么建立个平面 然后贴图 [ 62%]

... 提交 1 个回复 Laya_Xq 赞同来自: var Plane:MeshSprite3D = scene.addChild(new MeshSprite3D( new PlaneMesh())) as MeshSprite3D;             Plane.transform.rotate(new Vector3(0,45,0),false,false);             var material:StandardMaterial = new StandardMaterial();   ...

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