大约有 602 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0113 秒)
...理器。 Laya.stage.addChild(button);//将此 button 对象添加到显示列表。 } private function onClickButton(button:Button):void { trace("button.selected = "+ button.selected); } } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//...
来源: Laya3.0_api 发布时间: 20231115
...eadonly<ITouchInfo>> Defined in laya/events/Event.ts:225 触摸点列表。 Returns ReadonlyArray<Readonly<ITouchInfo>> Methods setTo setTo(type: string, currentTarget: any, target: any): Event Defined in laya/events/Event.ts:208 设置事件数据。 Parameters type: string 事...
来源: Laya3.0_api 发布时间: 20231115
...e Defined in laya/net/Loader.ts:688 获取指定资源地址的图集地址列表。 Parameters url: string 图集地址。 Returns AtlasResource 返回地址集合。 Static getBaseTexture getBaseTexture<T>(url: string): T Defined in laya/net/Loader.ts:679 Type parameters T: BaseTexture Param...
来源: Laya3.0_api 发布时间: 20231115
...后用这个参考文件去翻译成各种语言,再添加到翻译文件列表中。参考文件不需要添加到翻译文件列表中,因为参考文件内的文字都是界面上现存的。 收集文本:点击后,将分析配置文件所在目录和子目录下的所有预制体文件...
来源: Laya3.0_文档 发布时间: 20251010
...资源预加载~~~ 我们打开LayaSample.js 把新的资源放到预加载列表中 ======================== 能量条 ======================== 先讲能量条 我们游戏中有两种能量条 1、玩家悬空能量 2、玩家加速能量 根据我们的UI来分析一下 其实两个能量条...
来源: Laya_社区 发布时间: 20160803
...y接口,可以通过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScene...
来源: Laya3.0_api 发布时间: 20231115
...文本边框颜色。 Laya.stage.addChild(text);//将 text 添加到显示列表。 } } } example Text_Example(); function Text_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } function onInit() {...
来源: Laya3.0_api 发布时间: 20231115
... Laya.stage.addChild(hScrollBar);//将此 hScrollBar 对象添加到显示列表。 } private function onChange(value:Number):void { trace("滚动条的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜...
来源: Laya3.0_api 发布时间: 20231115
... Laya.stage.addChild(vScrollBar);//将此 vScrollBar 对象添加到显示列表。 } private function onChange(value:Number):void { trace("滚动条的位置: value=" + value); } } } example Laya.init(640, 800);//设置游戏画布宽高 Laya.stage.bgColor = "#efefef";//设置画布的背景颜...
来源: Laya3.0_api 发布时间: 20231115
...器。 Laya.stage.addChild(progressBar);//将 progressBar 添加到显示列表。 Laya.timer.once(3000, this, changeValue);//设定 3000ms(毫秒)后,执行函数changeValue。 } private function changeValue():void { trace("改变进度条的进度值。"); progressBar.value = 0.6; } private ...
来源: Laya3.0_api 发布时间: 20231115