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

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

2971. laya.ui.Dialog_API3.0 [ 29%]

...g_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onL...

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

2972. laya.ui.Radio_API3.0 [ 28%]

...ton_toggle { public function Button_toggle() { 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

2973. 3D中摄像机绕物体旋转该如何实现? [ 27%]

...碰撞检测rect没有旋转 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 缓动Tween能用在3D物体或者特效上面吗? 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? 如...

来源: Laya_社区 发布时间: 20170714

2974. laya.display.Sprite_API3.0 [ 25%]

...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

2975. laya.ui.RadioGroup_API3.0 [ 25%]

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

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

2976. laya.ui.Tab_API3.0 [ 25%]

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

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

2977. laya.display.Stage_API3.0 [ 24%]

...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Parameters screenWidth: number 屏幕宽度。 screenHeight: number 屏幕高度。 Returns void setScreenSizeForScene setScreenSizeForScene(screenWidth: number, screenHeight: number, _screenMode: str...

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

2978. laya.ui.Tree_API3.0 [ 23%]

...= 0; arrow.y = 5; addChild(arrow); } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var res = ["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png",...

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

2979. laya.display.Text_API3.0 [ 23%]

...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

2980. laya.ui.HScrollBar_API3.0 [ 23%]

...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