大约有 410 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...*/ constructor() { super(); } onAwake() { console.log("场景渲染完成", this.speed); } } IDE中报错: [15:26:34] Working directory changed to E:\LayaAirIDE\resources\app [15:26:35] Using gulpfile E:\myLaya\demo2\.lay...
来源: Laya_社区 发布时间: 20191227
...调用到弹窗的脚本组件的设置数据方法,设置好数据后在onAwake里设置内容,这个方法的问题是存在弹出动画的时候会有差异,onOpended方法是在动画运行完毕之后才触发的;或者先设置弹窗里的元素不可见,在onOpened方法里面设置...
来源: Laya_社区 发布时间: 20231221
...以的,不知是不是3的bug还是需要用其他方法来实现。 onAwake(): void { // 无加载失败重试 Laya.loader.retryNum = 0; var urls: any = ["do not exist", "resources/res/fighter/fighter.png", "resources/res/legend/map.jpg"]; ...
来源: Laya_社区 发布时间: 20240705
...Methods MethodDefined By _createJoint():void[override] RevoluteJoint _onAwake():void[override] JointBase _onDisable():void[override] JointBase _onEnable():void[override] JointBaseProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的链接点,是相对于自身刚...
来源: Laya2.0_api 发布时间: 20190513
...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeLine removeSelf replaceChild runCallLater setChildIndex setLine timerLoop timerOnce instantiate load Constructors cons...
来源: Laya3.0_api 发布时间: 20231115
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //点击Tab选择按钮的处理 this.tab.selectHandler = new Laya.Handler(this, this.onSelecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 t...
来源: Laya3.0_文档 发布时间: 20251010
...时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.assets = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void {...
来源: Laya3.0_文档 发布时间: 20230303
...ethods MethodDefined By _createJoint():void[override] PrismaticJoint _onAwake():void[override] JointBase _onDisable():void[override] JointBase _onEnable():void[override] JointBaseProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的控制点,是相对于自身刚...
来源: Laya2.0_api 发布时间: 20190513
...///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1399:37) at TestHtml.onAwake (file:///D:/LayaTest/TestHtml2.2.0/bin/js/bundle.js:27:34) at TestHtml._activeHierarchy (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:12332:22) 附件 : --> TestHtml2.2_.0_.zip 2019-10-28 添加评论 ...
来源: Laya_社区 发布时间: 20191028
...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初始化树状列表的数据源 let treeData: string = "<data>"; //给Tree列表赋值 treeData += "<dir label='box1' isOpen='true'>" + "<file label='child1 ' />" + "<file label='child...
来源: Laya3.0_文档 发布时间: 20251010