Search Unity

Changing Sprite Sheet of a Sprite Object

Discussion in '2D' started by CaioCezar, Jan 21, 2015.

  1. CaioCezar

    CaioCezar

    Joined:
    Jan 21, 2015
    Posts:
    2
    Hi everyone,
    We made some modifications in an spritesheet in use. We create some new elements but the old ones are in same place. How can we replace the old spritesheet for the new without lose Trim's, pivot positions and sprite parts?
     
  2. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    899
    I think you can just save over the old graphics file with the new one, then start Unity and select reimport on the graphics file.
     
  3. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
    No need to reimport the file. Unity will detect a change and reimport it even while Unity is running. All you need to do is check to make sure all the info is right in the sprite editor. I do this all the time even with 3D meshes. You can even update code at run time and Unity will reflect the changes(start and awake don't fire but other stuff will.)
     
  4. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    899
    Strange, I did try and I had to select reimport before the changes took effect.
     
  5. CaioCezar

    CaioCezar

    Joined:
    Jan 21, 2015
    Posts:
    2
    Thank you all!