Vixen
02b45cc4
csharp
public record class SpriteSliceOptions

What a slice is asked for.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (12)

  • public SliceMethod Method

    How to cut.

  • public Int2 CellSize

    How big one cell is, for GridBySize.

  • public Int2 CellCount

    How many columns and rows, for GridByCount.

  • public Int2 Offset

    Where the grid starts, in texels from the top-left.

  • public Int2 Padding

    The gap between cells, in texels.

  • public Vector2 Pivot

    Where each sprite's origin sits, as a fraction from the bottom-left.

  • public NineSlice Border

    Each sprite's nine-slice border, in texels.

  • public byte AlphaThreshold

    The alpha at or below which a texel counts as empty.

  • public int MinimumSize

    The smallest island Automatic will call a sprite.

  • public bool KeepEmpty

    Whether a grid keeps cells with nothing in them.

  • public bool Trim

    Whether each rect is shrunk to what is actually drawn inside it.

  • public string NamePrefix

    What the sprites are called, before the number.

Methods (1)

  • public SpriteSliceOptions(SliceMethod Method = GridBySize)

    What a slice is asked for.

Used by (3)

  • SpriteSheetViewVixen.Editor.AssetEditors
  • SpriteSlicerVixen.Editor.Assets
  • SpriteSlicerTestsVixen.Editor.Assets.Tests