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

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

61. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.tab.pos(200, 200); this.tab....

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

62. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width...

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

63. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...st { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建...

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

64. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 73%]

...** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮...

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

65. 如何才能生成scene配套的代码 [ 72%]

...i.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("test/TestScene"); } } } 2018-10-24 添加评论 免费帖 --> 分享 ...

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

66. TS版分包报错 [ 72%]

...类似如下代码: module ui.coreUI {         export class TestUI extends View{         // do something...         } }       我在其它包的类中通过 import TestUI = ui.coreUI.TestUI ;  方式引入类 定义时报错:  "Uncaught ReferenceError: ui is not defined"    ...

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

67. 异步加载一个UI对象时的问题 [ 72%]

...此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.AT...

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

68. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ComboBox }) public combobox: Laya.ComboBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.combobox.pos(...

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

69. 创建laya的视图销毁destroy()清除不了 [ 71%]

...不了 创建laya的视图销毁destroy()清除不了。  class Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSe...

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

70. HTMLIframeElement加载html网页的问题 [ 71%]

...et.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load...

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