大约有 842 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(452) Laya3.0_api(112) Laya2.0_api(90) laya_api(77) Laya2.0_文档(54) Laya3.0_文档(53) Laya2.0_示例(2) Laya_示例(2)
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:int = Laya.stage.width - w >> 1; //显示的字符串 var demoString:String = "LayaBox"; var ...
来源: Laya2.0_文档 发布时间: 20210715
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...rom Text.displayWidth Defined in laya/display/Sprite.ts:556 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:483 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231115
...,会自动加载) this.hScrollBar.skin = "res/ui/hscroll.png"; //设置宽度 this.hScrollBar.width = 400; //设置位置 this.hScrollBar.pos(150, 170); //最低滚动位置数字 this.hScrollBar.min = 0; //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScro...
来源: Laya2.0_文档 发布时间: 20210714
... "10,40,10,5";//设置 bg 的网格信息。 bg.width = 150;//设置 bg 的宽度。 bg.height = 250;//设置 bg 的高度。 this.addChild(bg);//将 bg 添加到显示列表。 var image = new laya.ui.Image("resource/ui/image.png");//新建一个 Image 类的实例 image 。 this.addChild(image);//...
来源: Laya3.0_api 发布时间: 20231115
...";//设置 label 的name属性值。 label.size(100, 20);//设置 label 的宽度、高度。 this.addChild(label);//将 label 添加到显示列表。 }; Laya.class(Item,"mypackage.listExample.Item",_super);//注册类 Item 。 })(laya.ui.Box); Laya.init(640, 800);//设置游戏画布宽高、渲...
来源: Laya3.0_api 发布时间: 20231115
...,会自动加载) this.vScrollBar.skin = "res/ui/vscroll.png"; //设置宽度 this.vScrollBar.width = 400; //设置位置 this.vScrollBar.pos(150, 170); //最低滚动位置数字 this.vScrollBar.min = 0; //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScro...
来源: Laya2.0_文档 发布时间: 20210715
...不可见,节点将不被渲染。Sprite width : Number 显示对象的宽度,单位为像素,默认为0。 此宽度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。 可以通过getbounds获取...
来源: laya_api 发布时间: 20170929