using System.Collections.Generic; using UnityEngine; namespace WXB { public class RectSpriteNode : NodeBase { public Rect rect; public Sprite sprite; public Color color; public override float getHeight() { return rect.height; } public override float getWidth() { return rect.width; } public override void render(float maxWidth, RenderCache cache, ref float x, ref uint yline, List lines, float offsetX, float offsetY) { cache.cacheSprite(null, this, sprite, rect); } public override void fill(ref Vector2 currentpos, List Lines, float maxWidth, float pixelsPerUnit) { } }; }