• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0126 秒)

821. 滤镜-颜色滤镜 [ 67%]

...pe = new Sprite(); ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(ape); return ape; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Lay...

来源: Laya_示例 发布时间: 20251219

822. [LayaAir3]创建自由光源,形状是否有错误? [ 67%]

...      freelightLayer.y = startY + gap * 2;             this.owner.addChild(freelightLayer);              let freeStartX = 0;//startX + gap * 2;             let freeStartY = 0;//startY + gap * 2;             let freeformLight2D = freelightLayer.addComponent(Laya.FreeformLi...

来源: Laya_社区 发布时间: 20251209

823. 在UI类里调用启动类的静态函数失败了 [ 67%]

...= 99;//置最顶,这句话不写图层看不见 // info.init(); Laya.stage.addChild(info); } private onLoading(): void { var bj = new BeiJing(); Laya.stage.addChild(bj); } } new GameMain();   这个是我的UI类,我在这个类里调用GameMain.aaa();提示TypeError: GameMain.aaa is not a functi...

来源: Laya_社区 发布时间: 20180507

824. IOs使用手动删除本地资源再次进去加载问题 [ 67%]

...r.create(null, onLoaded2));      }  function onLoaded2() { Laya.stage.addChild(new TestUI()); }当用这种方式分步加载资源的时候 就会出现我说的情况  ios下会 安卓是正常, 第一步的资源会加载成功,第二部分的资源就加载失败 2018-07-31 0 0 分享 ...

来源: Laya_社区 发布时间: 20180730

825. 鼠标交互-双指缩放(多点触控) [ 67%]

...2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(sp); sp.on(Event.MOUSE_DOWN, this, onMouseDown); } function onMouseDown(e) { var touches = e.touches; if (touches && touches.length == 2) { lastDistance = getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, o...

来源: Laya_示例 发布时间: 20251219

826. 粒子编辑器黑屏 [ 67%]

...把此信息截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null     at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27)     at Particl...

来源: Laya_社区 发布时间: 20170908

827. 缓动-时间线 [ 67%]

...Ape() { const Sprite = Laya.Sprite; this.target = new Sprite(); Laya.stage.addChild(this.target); this.target.loadImage("res/apes/monkey2.png"); this.target.pivot(55, 72); this.target.pos(100,100); } createTimerLine() { const TimeLine = Laya.TimeLine, Event = Laya.Event; this.timeLine = new TimeLine...

来源: Laya2.0_示例 发布时间: 20251219

828. putimagedata 不起作用 [ 67%]

...howApe() { // 方法1:使用loadImage var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.pn...

来源: Laya_社区 发布时间: 20171130

829. 滤镜-颜色滤镜 [ 67%]

...eateApe() { const Sprite = Laya.Sprite; let ape = new Sprite(); Laya.stage.addChild(ape); apeTexture = Laya.loader.getRes(apePath); ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Lay...

来源: Laya2.0_示例 发布时间: 20251219

830. 节点管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...下面来熟悉一下Node类的所有基础的功能 添加 添加子节点addChild(node:Node) 在不考虑层级的情况下,我们可以给某个节点添加子节点,可让子节点跟随父节点显示与否,移动,以及方便管理。添加的子节点会加到所有子节点的最后...

来源: Laya3.0_文档 发布时间: 20251010