Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Feature Request Copy and paste shape between custom outline and custom physics shape

Discussion in '2D' started by bartofzo, May 14, 2024.

  1. bartofzo

    bartofzo

    Joined:
    Mar 16, 2017
    Posts:
    153
    In the sprite editor, it is impossible to copy and paste the vertices between the custom physics shape and the custom outline. Even though the editing mechanism is exactly the same. One would expect this to work but it doesn't...

    We use both of these for various mechanics in our game and currently for every sprite we have to manually edit the vertices two times which is really tedious.

    Would be a lifesaver if this would be possible.
     
    Wilhelm_LAS likes this.
  2. Wilhelm_LAS

    Wilhelm_LAS

    Joined:
    Aug 18, 2020
    Posts:
    66
    Exactly. You can use .meta file of sprite to copy-paste the custom outline to physics shape. But they should have been integrated that feature! Even further, you can use some math and do it in Debug mode of editor. But i prefer this way. Simple and we see the exact coordinates
    upload_2024-5-25_0-44-21.png
     
    MarekUnity and bartofzo like this.
  3. bartofzo

    bartofzo

    Joined:
    Mar 16, 2017
    Posts:
    153
    Thanks for the workaround! But agreed... this is a major oversight and should be integrated.
     
  4. MarekUnity

    MarekUnity

    Unity Technologies

    Joined:
    Jan 6, 2017
    Posts:
    216
    Thank you for your feedback @bartofzo and @Wilhelm_LAS

    If you are proficient with C#, you could use the Sprite Editor Data Provider API and more specifically copy-paste outlines between ISpriteOutlineDataProvider and ISpritePhysicsOutlineDataProvider.

    I have forwarded your feedback to the team about the copy-paste functionality between these two modules.