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

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

1591. Animation 使用疑问 [ 49%]

...Rectangle = this.aniBody.getBounds();         this.aniBody.pivot(bound.width / 2, bound.height / 2);         if (direction < 0) {             this.aniBody.scaleX = -1;         } else {             this.aniBody.scaleX = 1;         }     } 每改变一个方向CurMern...

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

1592. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 49%]

...;         this.iframe.style.right = "0";         this.iframe.style.width = "100%";         this.iframe.style.height = "100%"         this.iframe.style.border = "none";         this.iframe.style.zIndex=-1     }   那我有一个需求,想将document 元素 层级设置为-1...

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

1593. Laya3D初始化 window.wxMiniGame is not a function [ 49%]

...this.zombieAnimator.on is not a function if (window["Laya3D"]) Laya3D.init(width,heigh) 调用失败,引起底层问题 浏览器运行提示TypeError: xxx is not a function 希望Laya3D的入门提供一个unity的项目例子 LayaAirIDE2.2 - Laya3D init error ,must support webGL laya3d在vivo小...

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

1594. HtmlDivElement 下划线 [ 49%]

...rSelfToGraphic graphic.drawLine(words[0].x, lineY, lastWords.x + lastWords.width, lineY, color, 1);

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

1595. 向TiledMap中的对象层中的矩形框添加精灵,不显示 [ 49%]

...edMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100...

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

1596. 头条/微信/OPPO/vivo/趣头条/百度 等渠道发布 [ 49%]

..... 上一行代码: graphics.drawTexture(shareTexture, 0, 0, shareTexture.width, shareTexture.height); 下一行报错: Uncaught TypeError: this.bitmap.activeResource is not a function 2020-05-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

1597. TiledMap制作横板地图 报错 [ 49%]

... this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是14...

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

1598. 微信授权,获取用户信息的接口实现方法,wx.createUserInfoButton [ 48%]

... {                         left: wx.getSystemInfoSync().windowWidth/2-70,                         bottom: wx.getSystemInfoSync().windowHeight/2,                         width: 140,                         height: 40,                        ...

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

1599. rigidBody.applyForce 物体不会移动 [ 48%]

...aterial = material; //设置文本显示框位置 this.text.x = Laya.stage.width / 2 - 50; //显示文本显示框 this.text = new Laya.Text(); this.text.overflow = Laya.Text.HIDDEN; this.text.color = "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 24; this.text.x = (Laya.stage.width / 5)...

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

1600. 怎么获取手机相册内容 [ 48%]

...put"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; Browser.document.body.appendChild...

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