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

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,392
    No, putting sprites in Resources prevents them from being packed.

    --Eric