大约有 667 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(279) Laya3.0_api(93) Laya2.0_api(73) laya_api(62) Laya_示例(54) Laya2.0_示例(54) Laya2.0_文档(33) Laya3.0_文档(19)
...本中心,这样写,text.pivotX=text.width>>1; text.pivotY=text.height>>1; 然后将文本置于屏幕中心,理论上应该文本框居中 但结果是这样 附件 : --> 2016-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20160617
...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
...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
...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
...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
....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
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite duration : Numb...
来源: Laya2.0_api 发布时间: 20190513
... {"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
...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
... 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