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

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

71. laya.ui.Image_API3.0 [ 47%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,...

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

72. laya.display.Scene_API3.0 [ 47%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void close close(type?: string): void Defined in laya/display/Scene.ts:149 关闭场景 【注意】被关闭的场景,如果没有设置autoDestroyAtRemoved=tru...

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

73. laya.display.Animation_API3.0 [ 47%]

...模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.init(); } private init(): void { var animation:Animation = new Laya.Animation();//创建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation....

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

74. laya.display.Stage_API3.0 [ 46%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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

75. laya.ui.View_API3.0 [ 46%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void close close(type?: string): void Inherited from Scene.close Defined in laya/display/Scene.ts:149 关闭场景 【注意】被关闭的场景,如果没有设...

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

76. laya.ui.ScrollBar_API3.0 [ 46%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

77. laya.ui.Label_API3.0 [ 46%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var label: Label = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 la...

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

78. laya.ui.FontClip_API3.0 [ 46%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

79. laya.ui.UIGroup_API3.0 [ 46%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

80. laya.display.Text_API3.0 [ 46%]

...模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var text: laya.display.Text = new laya.display.Text();//创建一个 Text 类的实例对象 texttext.text = "这个是一个 Text 文本示例。"; text.color = "#008fff";//设...

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