大约有 1,738 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...ctedBox":3, "selecteID":4, "searchKey":"View", "props":{"width":640,"sceneColor":"#000000","height":1136}, "nodeParent":-1, "maxID":11, "label":"View", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2, ...
来源: Laya_社区 发布时间: 20210817
...); ropePart.texture = ropePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider(); boxCollider.width = ropePart.width; boxCollider.height = ropePart.height; ropePart.addComponentIntance(boxCollider); ropePart.addCompone...
来源: Laya_社区 发布时间: 20190424
...vertor(); // Div var mapDiv; var infoText; (function() { Laya.init(Browser.width, 255); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; createDom(); initMap(); createInfoText(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用高精度位...
来源: Laya_示例 发布时间: 20240929
...rm = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标...
来源: Laya2.0_示例 发布时间: 20240929
.../////////////////////////////////////////////// var browserWidth = Laya.Browser.width; var browserHeight = Laya.Browser.height; var pixelRatio = Laya.Browser.pixelRatio; console.log(browserWidth + " " + browserHeight + " " + pixelRatio)...
来源: Laya_社区 发布时间: 20200604
...= Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load("res/car...
来源: Laya2.0_示例 发布时间: 20240929
...对齐且最后一行有数字“1”时排版不正常,发现是 getTextWidth( ) 函数的结果和在屏幕上实际显示的宽度不同导致。 2018-04-17 1 0 分享 微博 QZONE 微信 he853066732 赞同来自: 先上源码 module game { /** * 富文本类型(重写Text类的排版和渲...
来源: Laya_社区 发布时间: 20180417
...:void { this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete)); Laya.stage.on(Laya.Event.RESIZE,this,this.onResize); } onComplete():void { this.onResize(); } onResize(...
来源: Laya_社区 发布时间: 20161116
...设置大小不统一 var bounds = ani.getGraphicBounds(); ani.scale(img.width/bounds.width,img.height/bounds.height) 这里我获得动画的边界 获取得到 然后img的宽高都是80 我想设置每个动画宽高都为80 这样设置为什么不能实现? 2017-06-29 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20170629
...。 AutoBitmap source : Texture 对象的纹理资源。 AutoBitmap width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(value:Number):void 设置透明度。 Graphics ...
来源: laya_api 发布时间: 20170929