csharp
public record class SpriteSliceOptionsWhat 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 MethodHow to cut.
public Int2 CellSizeHow big one cell is, for GridBySize.
public Int2 CellCountHow many columns and rows, for GridByCount.
public Int2 OffsetWhere the grid starts, in texels from the top-left.
public Int2 PaddingThe gap between cells, in texels.
public Vector2 PivotWhere each sprite's origin sits, as a fraction from the bottom-left.
public NineSlice BorderEach sprite's nine-slice border, in texels.
public byte AlphaThresholdThe alpha at or below which a texel counts as empty.
public int MinimumSizeThe smallest island Automatic will call a sprite.
public bool KeepEmptyWhether a grid keeps cells with nothing in them.
public bool TrimWhether each rect is shrunk to what is actually drawn inside it.
public string NamePrefixWhat 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