大约有 279 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0074 秒)
...aya.stage.addChild(tree);//将 tree 添加到显示列表。 } (function (_super) { function Item() { Item.__super.call(this);//初始化父类。 this.right = 0; this.left = 0; var selectBox = new laya.ui.Clip("resource/ui/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox ...
来源: Laya3.0_api 发布时间: 20231115
...enParticleSystem: Array<ShurikenParticleSystem>= []; constructor() { super(); } //通过传入粒子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Parti...
来源: Laya3.0_文档 发布时间: 20240117
... 200; private Y_OFFSET: number = 80; private skins: any[]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.skins = ["resources/res/ui/radioButton (1).png", "resources/res/ui/radioButton (2).png",...
来源: Laya3.0_文档 发布时间: 20231012
... @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置,其它的子级节点,不再支持runtime,如果...
来源: Laya3.0_文档 发布时间: 20230406
...型的需求 @property(String) public text2: string = ""; constructor() { super(); } } @property()是IDE识别组件属性并显示到IDE属性面板上的装饰器标识,类型是装饰器属性标识必须携带的参数。 如果我们不需要给属性写一个tips说明,也不需要给属...
来源: Laya3.0_文档 发布时间: 20240809
... = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(normalizeTime: number...
来源: Laya3.0_文档 发布时间: 20230804
...属性值。 label.size(100, 20); addChild(label); } } example (function (_super){ function Item(){ Item.__super.call(this);//初始化父类 this.graphics.drawRect(0, 0, 100, 20, "#ff0000"); var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。 label.text = "100000";//...
来源: Laya3.0_api 发布时间: 20231115
...ces/Effects/Materials/Effect_yu_jinbi_xulie.lmat"); super(material); { let s = this.particleSystem; s.isPerformanceMode = true; s.duration = 20; ...
来源: Laya_社区 发布时间: 20170605
...前修改有效,兼容ui constructor() { super(); this.once(Laya.Event.DISPLAY, this, this.onCreate); this.once(Laya.Event.UNDISPLAY, this, this.onDestroy); } /** * 加入场景 */...
来源: Laya_社区 发布时间: 20181114
...blic curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new Laya.Vector3();...
来源: Laya3.0_文档 发布时间: 20231214