Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to rename a sprite in assets setting?

Discussion in 'Project Tiny' started by AllenDK, Jan 19, 2019.

  1. AllenDK

    AllenDK

    Joined:
    Mar 2, 2017
    Posts:
    3
    This is the sprite's origin name "bird_blue_0".
    1.png
    And this is it's name in assets setting, "bird_0";
    2.png


    But how to rename it?
    In this demo, it's used as skin sprite, so it's quite necessary to know how.
     
  2. etienne_unity

    etienne_unity

    Unity Technologies

    Joined:
    Aug 31, 2017
    Posts:
    102
    Hi @AllenDK

    Unfortunately, the only way to change exported asset names at the moment is to edit the .utproject file and rename the asset. We're tracking this workflow issue and will reply to this thread once this is fixed.

    Matching lines in FlyingYolk:
    Code (JavaScript):
    1.     "Assets": [{
    2.         "Name": "bg"
    3.     }, {}, {
    4.         "Name": "bg",
    5.         "Object": { "$TypeId": 10, "Guid": "1f5fe83ba337c904994be4e7a0233c9f", "FileId": 21300000, "Type": 3 }
    6.     }, {
    7.         "Name": "bg",
    8.         "Object": { "$TypeId": 10, "Guid": "1f5fe83ba337c904994be4e7a0233c9f", "FileId": 21300002, "Type": 3 }
    9.     }, {
    10.         "Name": "bird_0",
    11.         "Object": { "$TypeId": 10, "Guid": "1f5fe83ba337c904994be4e7a0233c9f", "FileId": 21300148, "Type": 3 }
    12.     }, {
    13.         "Name": "bird_1",
    14.         "Object": { "$TypeId": 10, "Guid": "1f5fe83ba337c904994be4e7a0233c9f", "FileId": 21300150, "Type": 3 }
    15.     }, {
    16.         "Name": "bird_2",
    17.         "Object": { "$TypeId": 10, "Guid": "1f5fe83ba337c904994be4e7a0233c9f", "FileId": 21300152, "Type": 3 }
    18.     }, { ...
     
  3. AllenDK

    AllenDK

    Joined:
    Mar 2, 2017
    Posts:
    3
    Good to know, thanks a lot.:)