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

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

191. 位图字体的排版与注册点问题 [ 78%]

...本中心,这样写,text.pivotX=text.width>>1; text.pivotY=text.height>>1; 然后将文本置于屏幕中心,理论上应该文本框居中 但结果是这样   附件 : --> 2016-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

192. getimagedata直接调用无法获取有效像素问题 [ 78%]

...ure的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,this.height,0,0); va...

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

193. ???????? 为啥加一个 Text,drawcall 暴增? [ 78%]

...ish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.skin = "assets/ui_imgs/icon_00312.png"; fish.scoreGold.x = fish.scoreItem.x; fish.scoreGold.y = fish.scoreItem.y; fish.scoreGol...

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

194. laya.map.MapLayer_API3.0 [ 78%]

...tPrior layerName mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

来源: Laya3.0_api 发布时间: 20231115

195. laya中的截屏在WebGL下为什么无效呢? [ 78%]

...layabox.com/question/4150例子中 如果 Laya.init(Browser.width, Browser.height,WebGL);截屏是无效的。如果 Laya.init(Browser.width, Browser.height);才能截屏成功。 那如何在 Laya.init(Browser.width, Browser.height,WebGL)截屏成功呢?

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

196. matter.jsr Render下可以移动视图窗口 用LayaRender则没反应 [ 78%]

....context; var world = {minX: -globalWidth, maxX: globalWidth, minY: -globalHeight, maxY: globalWidth}; context.setTransform(1,0,0,1,0,0); context.clearRect(0, 0, canvas.width, canvas.height); //Clamp the camera position to the world bounds while centering the camera around the car var camX = clamp(-...

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

197. laya.device.media.Video [ 78%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  duration : Numb...

来源: Laya2.0_api 发布时间: 20190513

198. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

... {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_tree_folder.png", "clipY": "3...

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

199. laya.map.TileAniSprite_API3.0 [ 78%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

来源: Laya3.0_api 发布时间: 20231115

200. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 78%]

... class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, -(Laya.Browser.hei...

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