Search Unity

  1. Unity 2019.2 is now released.
    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,156
    No, putting sprites in Resources prevents them from being packed.

    --Eric