大约有 291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Laya_社区(116) Laya3.0_api(60) Laya2.0_示例(34) Laya2.0_文档(31) Laya_示例(31) Laya3.0_文档(17) laya_api(1) Laya2.0_api(1)
...= "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 ...
来源: Laya3.0_文档 发布时间: 20251010
...于增加地板,新地板产生条件是前一个旧地板(this.x + this.width) < this.maxRight,this.x初始都是852,是正数,this.width是旧地板宽度也是正数,所以只有当前一个旧地板的this.x等于负值时等式才会成立,也就是前一个旧地板有部分图形...
来源: Laya_社区 发布时间: 20180329
...置。 bg.sizeGrid = "40,10,5,10";//设置 bg 对象的网格信息。 bg.width = 150;//设置 bg 对象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 I...
来源: Laya3.0_api 发布时间: 20231115
...gh name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY animationName blendMode cacheAs components currentTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters gl...
来源: Laya3.0_api 发布时间: 20231115
... debug_txt.autoSize = TextFieldAutoSize.LEFT; debug_txt.width = 1000; debug_txt.y = 20; var tf:TextFormat = new TextFormat(null,12,0xFFFFFF); debug_txt.defaultTextFormat = tf; debug_txt.text = "start..."; ...
来源: Laya_社区 发布时间: 20200217
... _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdaptationEnabled tag useRetinalCanvas ALIGN_BOTTOM ALIGN_CENTER ALIGN_LEFT ALIGN_MIDDLE ALIGN_RIGHT ALIGN_TOP FRAME_FAST FRAME_MOUSE FRAME_SLEEP FRAME_SLOW SC...
来源: Laya3.0_api 发布时间: 20231115
...his.vscroll.skin = "atlas/comp/vscroll.png";//滚动条皮肤 this.vscroll.width = 300;//滚动条的宽度 this.vscroll.pos(300, 300);//滚动条的位置 this.vscroll.min = 0;//滑块的最小滚动位置 this.vscroll.max = 10;//滑块的最大滚动位置 this.vscroll.scrollSize = 1;//点击按...
来源: Laya3.0_文档 发布时间: 20251010
...INGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotatio...
来源: Laya3.0_api 发布时间: 20231115
...his.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = n...
来源: Laya2.0_文档 发布时间: 20210714
...的问题,在安卓、韩文字体的情况下,这个方法返回的t.width的值一直为0,导致在计算韩文的文本渲染宽度时,韩文字符的宽度一直为0,因此所有的韩文就都叠在一起了,解决方法是在laya.webgl.js文件中的WebGLCharImage的构造函数中...
来源: Laya_社区 发布时间: 20210206