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

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

291. laya.display.Text [ 39%]

...| All Classes | Index | Frames No Frames TextProperties | Methods | Events | Constants Packagelaya.displayClasspublic class TextInheritanceText Sprite Node EventDispatcher ObjectSubclasses Input Text 类用于创建显示对象以显示文本。 注意:如果运行时系统找不到设定...

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

292. HTML文本 · LayaAir3.0文档 · LAYABOX [ 39%]

...k.layabox.com/'>LayaBox欢迎你的加入!</span>"; div.on(Laya.Event.LINK,this,(data:any)=>{ Laya.Browser.window.location.href=data; }); Laya.stage.addChild(div); 运行效果: 点击文字链接可以打开浏览器访问网址 3.6 实现html页面跳转 示例如下: var iHtml:H...

来源: Laya3.0_文档 发布时间: 20230303

293. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...prite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 test(e: Laya.Event) { //动画状...

来源: Laya3.0_文档 发布时间: 20251010

294. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...侦听器,而是直接侦听列表的ClickItem事件: list.on(Laya.UIEvent.ClickItem, this, this.onClickItem); // 回调函数的第一个参数就是当前被点击的对象 function onClickItem(item: GObject): void { console.log("点击了对象:" + item.title); //获得这个对象在列表...

来源: Laya3.0_文档 发布时间: 20251128

295. 时间轴动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...侧属性面板中设置动画事件属性,如图9-1所示 (图9-1) Event Name:在脚本中调用的事件方法名 Params:在脚本中调用事件方式时的传参(字符串),可以设置多个 如图9-2所示,例如对此事件添加一个 “event1” 方法名,添加两个...

来源: Laya3.0_文档 发布时间: 20251118

296. laya.d3.core.scene.Scene [ 36%]

... All Classes | Index | Frames No Frames SceneProperties | Methods | Events | Constants Packagelaya.d3.core.sceneClasspublic class SceneInheritanceScene Sprite Node EventDispatcher ObjectImplements ISubmit, laya.resource.ICreateResource BaseScene 类用于实现场景。 Public Properties Hi...

来源: laya_api 发布时间: 20170929

297. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...ions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以直接this._data = {}; this._data = IEditor.DataWatcher.watch({}); //inspect可以多次调用,将...

来源: Laya3.0_文档 发布时间: 20251010

298. laya.ui.Dialog [ 34%]

...All Classes | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Scene Sprite Node EventDispatcher Object Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,模式窗口功能。 可以...

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