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

大约有 149 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0082 秒)

121. laya.ui.MoreGame [ 18%]

... MoreGameInheritanceMoreGame View Scene Sprite Node EventDispatcher Object 游戏中心插件 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在...

来源: Laya2.0_api 发布时间: 20190513

122. laya.display.Sprite_API3.0 [ 16%]

...hape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();//创建一个 Sprite 类的实例对象 sprite 。 sprit...

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

123. laya.ui.Button_API3.0 [ 15%]

...n_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void ...

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

124. laya.ui.CheckBox_API3.0 [ 15%]

...Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void {...

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

125. laya.display.Animation_API3.0 [ 15%]

...xample { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类...

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

126. laya.display.Stage [ 15%]

...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Stage size(width:Number, height:Number):Sprite 设置宽高。相当于分别设置width和height属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.size(...).pos(.....

来源: laya_api 发布时间: 20170929

127. laya.display.Text_API3.0 [ 15%]

...ext_Example { public function Text_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text...

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

128. laya.ui.HScrollBar_API3.0 [ 15%]

...ollBar; public function HScrollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], ...

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

129. laya.ui.VScrollBar_API3.0 [ 15%]

...ollBar; public function VScrollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vsc...

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

130. laya.ui.ColorPicker_API3.0 [ 15%]

...mple { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void {...

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