大约有 302 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0036 秒)
Laya3.0_api(80) Laya2.0_api(74) laya_api(68) Laya_社区(30) Laya2.0_文档(24) Laya3.0_文档(16) Laya2.0_示例(6) Laya_示例(4)
...更新 Sprite3D _updateConch(state:RenderState):void 更新 Sprite3D addChild(node:Node):Node[override] 添加子节点。 Sprite3D addChildAt(node:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Sprite3D addChildren(... args):void 批量增加子节点 Node a...
来源: laya_api 发布时间: 20170929
...ght / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; expor...
来源: Laya_示例 发布时间: 20260106
...ton.scale(0.5,0.5);//动画缩放为原始状态的二分之一 Laya.stage.addChild(skeleton);//添加动画至舞台,这时候运行,动画已经可以播放了 createButton();//创建一个按钮,用来切换皮肤使用 } private function createButton():void { var btn:Sprite=new Sprite();//...
来源: Laya_社区 发布时间: 20170324
...个背景 var bg = new Image(); bg.skin = "../../res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 txt = new Text(); txt.text = "点击我切换适配模式(noscale)"; txt.bold = true; txt.pos(0, 200); txt.fontSize = 30; txt.on("click", this, onTxtClick); Laya.stage.addChild(txt); //实例...
来源: Laya_示例 发布时间: 20260106
... Node 类用于创建节点对象,节点是最基本的元素。 Node addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearTimer(caller:*, method...
来源: laya_api 发布时间: 20170929
...is3D numChildren parent scene timer url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents ...
来源: Laya3.0_api 发布时间: 20231115
...electedIndex); tab.selectHandler = new Handler(this, onSelect); Laya.stage.addChild(tab); return tab; } function onSelect(index) { console.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import W...
来源: Laya_示例 发布时间: 20260106
...edIndex); tab.selectHandler = new Handler(this, this.onSelect); Laya.stage.addChild(tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import ...
来源: Laya2.0_示例 发布时间: 20260106
...onst Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时...
来源: Laya2.0_示例 发布时间: 20260106
...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...
来源: Laya_示例 发布时间: 20260106