大约有 557 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(319) Laya3.0_api(80) Laya2.0_api(74) laya_api(68) Laya2.0_示例(6) Laya3.0_文档(4) Laya_示例(3) Laya2.0_文档(3)
...t.CLICK); Laya.Laya.stage.offAll(Laya.Event.DOUBLE_CLICK); Laya.Laya.stage.removeChild(this.label); } } class B2Math { static AddVV(a, b) { return [a[0] + b[0], a[1] + b[1]]; } static SubVV(a, b) { return [a[0] - b[0], a[1] - b[1]]; } } new Physics_Physics_Strandbeests(); import { Config } from "Con...
来源: Laya2.0_示例 发布时间: 20251209
...点上移除 dragonAnimator2.unLinkSprite3DToAvatarNode(role); aniSprte3D2.removeChild(role); //移除龙2 dragon2.removeSelf(); //将role添加到场景上,同时播放hello动画 scene.addChild(role); animator.play("hello"); ``` (图4)
来源: Laya2.0_文档 发布时间: 20210714
...法会重新刷新缓存。Sprite refresh():void 刷新。LayoutBox removeChild(child:Node):Node[override] 删除子节点。 LayoutBox removeChildAt(index:int):Node[override] 根据子节点索引位置,删除对应的子节点对象。 LayoutBox removeChildByName(name:String):Node 根...
来源: laya_api 发布时间: 20170929
...竖屏的iphone上不能正常显示的问题 graphics alpha 问题 关于removechild、destory、clear的问题 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 问题状态 最新活动: 2025-09-23 10:06 浏览: 3038 关注: 3 人
来源: Laya_社区 发布时间: 20250827
...e onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerOnce viewportPoint...
来源: Laya3.0_api 发布时间: 20231115
...Y = laser.alpha; if (laser.alpha < 0.01) { lasers.splice(i, 1); Laya.stage.removeChild(laser); i--; } } } // increment the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }
来源: Laya_示例 发布时间: 20251209
...ndex<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(source); this.__bindList.splice(index,1); } private __updateBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let index:number=0;index<this.__bindList.length;index++){ ...
来源: Laya_社区 发布时间: 20190805
...e onDestroy onDisable onEnable once recoverRenderContext3D removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeCommandBuffer removeCommandBuffers removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerOnce viewportPoint...
来源: Laya3.0_api 发布时间: 20231115
...Y = laser.alpha; if (laser.alpha < 0.01) { lasers.splice(i, 1); Laya.stage.removeChild(laser); i--; } } } // increment the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }
来源: Laya2.0_示例 发布时间: 20251209
...eyChar + ".png"; } /** * 清除字体 */ private clearFnt(): void { XUtils.removeChilds(this.chars, BPFont.fontPool); } /** * 获取一个字体对象 */ private getSprite(): Laya.Sprite { let sp = BPFont.fontPool.shift() || new Laya.Sprite(); return sp; } /** * 创建位图文本 * @param v */ priv...
来源: Laya_社区 发布时间: 20180302