大约有 1,616 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0116 秒)
Laya_社区(986) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
...ETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));
来源: Laya_社区 发布时间: 20171116
...的update。 为了减少update子节点的层层调用,我重写了addChild的逻辑,使最上层的节点保存了所有子节点的列表,updateChildren的时候就不层层调用,直接在列表上遍历。 但是我试了另一种方式: > 对象不再调用updateChildren...
来源: Laya_社区 发布时间: 20170821
...nComplete(scene:Laya.Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210714
... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:A...
来源: laya_api 发布时间: 20170929
...s(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height)...
来源: Laya_社区 发布时间: 20171114
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameO...
来源: Laya3.0_api 发布时间: 20231115
... this.graphics.drawRect(0, 0, 90, 90, '#aabbcc', '#bbccdd', 1); Laya.stage.addChild(this); var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; totale...
来源: Laya_社区 发布时间: 20170920
...3) 创建Sprite方式: sp = new Sprite(); addChild(sp); sp.loadImage("./assets/ico_back.png"); 6、定位到 laya.core.js 1438行发现有这样的描述: if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,...
来源: Laya_社区 发布时间: 20171015
... console.log('sssss', fgui.GRoot.inst.displayObject); Laya.stage.addChild(fgui.GRoot.inst.displayObject); fgui.UIPackage.addPackage("res/Basics"); fgui.UIConfig.defaultFont = "Microsoft YaHei"; fgui.UIConfig.verticalScrollBar = "ui://Basic/ScrollBar_VT";...
来源: Laya_社区 发布时间: 20191030
...ray, Handler.create(null, onLoaded2)); } function onLoaded2() { Laya.stage.addChild(new TestUI()); }当用这种方式分步加载资源的时候 就会出现我说的情况 ios下会 安卓是正常, 第一步的资源会加载成功,第二部分的资源就加载失败 2018-08-03 添加评论 ...
来源: Laya_社区 发布时间: 20180803