大约有 786 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0095 秒)
Laya_社区(386) Laya2.0_文档(85) Laya3.0_api(74) Laya2.0_api(66) laya_api(63) Laya3.0_文档(53) Laya_示例(32) Laya2.0_示例(27)
...可以在VBox下添加一些子节点。示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VBox }) public vbox: Laya.VBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只...
来源: Laya3.0_文档 发布时间: 20251010
...,所以只好上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类lay...
来源: Laya_社区 发布时间: 20181027
...。需要添加如下的示例代码,实现脚本控制Tab: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只...
来源: Laya3.0_文档 发布时间: 20251010
...destroy()清除不了 创建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.d...
来源: Laya_社区 发布时间: 20170221
...可以在HBox下添加一些子节点。示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HBox }) public hbox: Laya.HBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只...
来源: Laya3.0_文档 发布时间: 20251010
...Area = "0,0," + bgImg.width + "," + bgImg.height; dialog.show(); }; } Laya.class(LoadResource, "LoadResource", null);照着官方文档实例, 写了一个显示 Dialog 代码, 怎么显示不出来?而且F12里输出报错: Uncaught TypeError: Cannot read property 'visible' of undefined ...
来源: Laya_社区 发布时间: 20200924
...访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点. export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getComponent(Laya.UI3D); let ui3d_root: Laya.Sprite = ui3...
来源: Laya_社区 发布时间: 20251020
....utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public function HelloLayabox() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Br...
来源: Laya2.0_文档 发布时间: 20210715
... Only exported Menu Globals "laya/d3/core/GeometryElement" GeometryElement Class GeometryElement GeometryElement 类用于实现几何体元素,该类为抽象类。 Hierarchy GeometryElement PixelLineFilter SubMesh ScreenQuad ShurikenParticleSystem TrailGeometry SkyBox SkyDome UI3DGeometry HLODBatc...
来源: Laya3.0_api 发布时间: 20231115
...示分数的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样...
来源: Laya_社区 发布时间: 20180323