N-Slice Data Control

Fine-tuning the N-Slice data in the NSliceImage component

N-Slice Data Control

NSliceImageInsepctor

Overview

There are two ways to apply a sliced sprite to the N Slice Image component:

  1. Assign the Sprite
  2. Assign the N-Slice Data

When Assigning the Sprite

  • If no N-Slice Data exists for that sprite, a new one will be created.
  • If N-Slice Data does exist, all slice data assets for that sprite in the project are listed.
  • You can freely choose from the available slice variants.
  • Click Edit to open and modify the current slice data in the N-Slicer Editor.
  • Click Create New to add a new slice data entry for the selected sprite.
  • Click Delete to remove the currently selected slice data.

When Assigning the N-Slice Data Directly

  • The corresponding sprite is automatically matched and assigned.
  • All other behavior is identical to the steps under “When Assigning the Sprite.”