大约有 164 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...a,600,"right"); bp.padding = bp1.padding = bp2.padding = -7; Laya.stage.addChild(bp); Laya.stage.addChild(bp1); Laya.stage.addChild(bp2); var t = 1000; Laya.timer.loop(1000,that,function(){ bp.text = t + ""; bp1.text = t + ""; bp2.text = t + ""; t++; }) } )); } } new GameMain(); 运行效果基本...
来源: Laya_社区 发布时间: 20161014
...n/env node const program = require('commander'); const { fork } = require('child_process'); const path = require('path'); program.parse(process.argv); const projPath = path.join(__dirname, '../'); const layaCompileDir = path.join(projPath, '.laya'); const gulpFilePath = path.join(layaCompileDir, 'co...
来源: Laya_社区 发布时间: 20201223
JQ集成到Laya二次封装 aWater = Laya.stage._childs; // //================= demo1 ======================= // JQ(aWater).click(function () { // //我已经打算废弃这样的事件用 on来动态绑定触法 // }) // //================= demo1 ======================= // //================= demo...
来源: Laya_社区 发布时间: 20171123
...tic GameStart:GameStart; GameMain.GameStart=new GameStart(); Laya.stage.addChild(GameMain.GameStart); 报错:file: 'file:///e%3A/LAYABOX/CaiCi/src/GameMain.ts' severity: '错误' message: 'Argument of type 'GameStart' is not assignable to parameter of type 'Node'. Property '_childs' is missing in ...
来源: Laya_社区 发布时间: 20170826
...he engine will no longer detect this object and will recursively check its child objects until it finds the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area d...
来源: Laya_社区 发布时间: 20250825
....WebGL); } } new GameMain(); 报错信息: (ele=(childs [i]))._style.visible && ele.render(context,x,y); 2018-02-03 0 0 分享 微博 QZONE 微信 qian 赞同来自: 引擎示例 --2D--区块地图 --带动画的地图 百度地图是这样 但是你这个可能...
来源: Laya_社区 发布时间: 20180203
...; if (comp != null) { lists.push(comp); } for (var i = 0; i < sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake():...
来源: Laya3.0_文档 发布时间: 20251010
... apesCtn=new Sprite() Laya.stage.addChild(apesCtn); for (var i:int = 0; i < 4; i++ ) { Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded)) } } ...
来源: Laya_社区 发布时间: 20161023
...mponent 是ui控件类的基类。 生命周期:preinitialize > createChildren > initialize > 组件构造函数 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : ...
来源: Laya2.0_api 发布时间: 20190513
...上的 Y 轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心...
来源: Laya2.0_api 发布时间: 20190513