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

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

331. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 64%]

...器上没有摸索到如何处理。只能通过代码处理了。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); this.cont...

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

332. WXOpenDataViewer组件用于制作微信排行榜,报错 [ 64%]

...文档步骤用WXOpenDataViewer做排行榜的时候,会报Can not find class laya.ui.WXOpenDataViewer,然后去引擎文件找这个类,发现没有laya.ui.WXOpenDataViewer,发布到微信小游戏中,也会报undefined,不知道往下怎么进行,我利用Beta3版本中的WXOpenDataV...

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

333. 预设/场景的导出(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 64%]

...,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor(){ super(); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)); } /** * 加载完成 */ private onComplete(sc...

来源: Laya2.0_文档 发布时间: 20210714

334. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 64%]

...n.ts`文件,在index.html中引用。编写以下代码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui....

来源: Laya2.0_文档 发布时间: 20210715

335. 如何用代码控制panel的vscroll滚动幅度 [ 64%]

...t laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void...

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

336. 官方的示例贴上来,怎么没反映啊 [ 64%]

...ndler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, "ui.JiHuo", _super); return JiHuo; })(ui.JiHuoUI); 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞...

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

337. Label属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 64%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Label)。 ​ Label 组件的资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ Label组件拖放到编辑区后,设置 text 属性的值为 LayaAir IDE 后的显示效果如下: ​ ![图片0....

来源: Laya2.0_文档 发布时间: 20210714

338. 请大家帮助优化一下这个抛物线的代码 [ 64%]

...码  希望大家指正 https://my.oschina.net/u/659068/blog/1564002  class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); th...

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

339. LAYA的AS3项目碰见个问题,求解 [ 64%]

...ntSize="12" editorInfo="compId=2"/> </View>   mytexts.as: public class myTexts extends myTextsUI        public function myTexts()         {             super();         }         override protected function initialize():void         {           ...

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

340. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 64%]

... 动画播放基类: [https://layaair.ldc.layabox.com/api/?category=Core&class=laya.display.AnimationPlayerBase](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.AnimationBase) 动画类: [https://layaair.ldc.layabox.com/ap...

来源: Laya2.0_文档 发布时间: 20210715