大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0013 秒)
...oader.getRes(textureUrl); this.ape.graphics.drawTexture(texture, 0, 0); // 设置交互区域 this.ape.size(texture.width, texture.height); } } } new laya.Sprite_SwitchTexture();package { import laya.display.Sprite; import laya.display.Stage; import laya.resource.Texture; import laya.utils.Browser; ...
来源: Laya2.0_示例 发布时间: 20241117
... Laya.GlowFilter; let glowFilter = new GlowFilter("#ffff00", 10, 0, 0); // 设置滤镜集合为发光滤镜 this.ape.filters = [glowFilter]; } } new Filters_Glow();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import GlowFilter = Laya.GlowFilter; import Texture = Laya.Textur...
来源: Laya2.0_示例 发布时间: 20241117
...height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dragRegion, true, 100); } } new Interaction_Drag();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; impor...
来源: Laya2.0_示例 发布时间: 20241117
...w Sprite(); maskSp.graphics.drawTexture(maskRes); maskSp.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_M...
来源: Laya2.0_示例 发布时间: 20241117