大约有 2,995 项符合查询结果, 库内数据总量为 30,933 项。 (搜索耗时: 0.0152 秒)
...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
...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
...碰撞检测rect没有旋转 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 缓动Tween能用在3D物体或者特效上面吗? 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持在最底部显示? 如...
来源: Laya_社区 发布时间: 20170714
...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
...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
... 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
...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Parameters screenWidth: number 屏幕宽度。 screenHeight: number 屏幕高度。 Returns void setScreenSizeForScene setScreenSizeForScene(screenWidth: number, screenHeight: number, _screenMode: str...
来源: Laya3.0_api 发布时间: 20231115
...= 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
...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
...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