Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Fill whole sprite by other sprite

Discussion in '2D' started by Only4gamers, Dec 18, 2022.

  1. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    Hello there,
    I am working on a 2D game. When player select a ship I want to show a border sprite on ship which cover whole ship using script, shader or any other way possible. There are different size of ships.
    Without border.JPG With border.JPG
     
  2. microbrewer

    microbrewer

    Joined:
    Jun 6, 2020
    Posts:
    12
    You can just paint the border sprite on top of the ship sprite. You might also want to take a look at 9-slicing.
     
    Only4gamers likes this.