Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Accessing to the packed sprites

Discussion in '2D' started by sonee, Nov 15, 2013.

  1. sonee

    sonee

    Joined:
    Sep 2, 2012
    Posts:
    18
    A. How can I access to the sprites in script?

    B. When building a project, all original sprite images(textures) which are going to get packed are excluded? If so, is it okay to put the original images under the Resource folder?
    And if the original sprite textures are assigned to any prefabs/objects, doesn't matter?

    C. Do I have to consider something for accessing to sprites that have packed already in script?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,261
    No, putting sprites in Resources prevents them from being packed.

    --Eric
     
unityunity