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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

setting Sprites in the Inspector

Discussion in 'Editor & General Support' started by NightmareTFD, Oct 20, 2015.

  1. NightmareTFD

    NightmareTFD

    Joined:
    Feb 11, 2015
    Posts:
    39
    right now i have been using Texture2D for links to Sprites and using Sprite.Create() to make the sprite at run time.

    my question i guess is two folder.
    1. i would like to change this to Sprite instead of Texture2D however it seems when i added a Sprite variable it didn't show up in the Inspector. how can i get around this?
    2. If that Texture2D is a Sprite and lands on a Sprite Atlas how will that end up in by build/game? will the Texture2D reference the Atlas or do i end up with 2 of the same image in my build?
     
  2. NightmareTFD

    NightmareTFD

    Joined:
    Feb 11, 2015
    Posts:
    39
    can anyone make a recommendation to be able to use Sprite in the inspector window vs Texture2D?