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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug SpriteShape 'Edit Spline' button grayed out for entire project

Discussion in '2D' started by bennettharvey1, May 25, 2022.

  1. bennettharvey1

    bennettharvey1

    Joined:
    May 15, 2022
    Posts:
    3
    I've been trying out SpriteShape objects, and after working on my project for a bit, I've written a script to try to create a spline for it in a script at edit-time in a custom importer. The spline was slightly wrong, but when I went to look at the generated spline to see what was wrong, the Edit Spline button was grayed out and unusable. Apparently, now, the button is grayed out on every single Sprite Shape Controller component in the project.

    I'm not sure if the script specifically was the cause of this, but that's just when I first noticed.

    Things I have tried that have not fixed the issue:
    - switching to an empty scene
    - creating a new otherwise empty SpriteShape object
    - checking a SpriteShape object I had previously created and customized with the Edit Spline button
    - commenting out all the script code that interfaces with SpriteShape
    - restarting Unity
    - restarting my computer
    - clearing the project cache
    - reimporting all assets

    Creating a completely new Unity project was the only way I could get the button to be enabled again.
     
  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    619
    We have not noticed this issue before. Could you kindly submit a repro project for this ? Will take a look asap. Sorry for the inconvenience caused. Thanks.
     
  3. bennettharvey1

    bennettharvey1

    Joined:
    May 15, 2022
    Posts:
    3
    In this uploaded project, I've removed all the assets I could that did not cause the bug to stop happening. Removing the 'Level' prefab (which is, in this barebones project, completely unused), or removing the 'room' prefab and unpacking the instance in scene1 seem to cause the bug to stop happening.

    If you would like me to use the 'Report a Bug' feature in-engine, I can do that too. I just uploaded the zip directly here so as not to create another post.
     

    Attached Files:

  4. bennettharvey1

    bennettharvey1

    Joined:
    May 15, 2022
    Posts:
    3
    Also, when I do one of the above things to 'fix' it, I can click the Edit Spline button, but it doesn't actually let me edit anything - the underlying spline and its points are not made visible or selectable.
     
  5. Rayeloy

    Rayeloy

    Joined:
    Feb 12, 2017
    Posts:
    42
    Any update on this? it's happening to me too and I don't know how to solve it!

    Edit: I fixed it. The bug appears ( like a ton of other bugs too) when you have more than 1 inspector open (I have always 3 and some of them locked). Once I unlocked all of them I could press the button again.
     
    Last edited: Aug 9, 2022
  6. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    619
    @Rayeloy Thanks for the update. Will take a look into this.
     
  7. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    619
    Sorry for the delay in response. We were unable to reproduce the issue. Could you please try deleting the Library folder and try a recent version? If the issue still persists, I will create an open issue and take a look asap.
     
  8. cmmint

    cmmint

    Joined:
    Mar 13, 2015
    Posts:
    1
    Hi,
    I have just encountered the same bug.
    If you have two inspectors windows open e.g. one locked to a certain object, the icon is not clickable in any other inspector. If you remove the lock from your inspector it is clickable in that window.

    It feels like unity it still initializing the inspector behind the locked one and allowing the editing in this "hidden version". Any other inspector window you open on the gameobject has this option greyed out.

    I hope this makes some sort of sense.
    I have seen this occur with some other components (related to physic shape editing), I guess when the component is set to only allow one instance, getting confused with multiple inspectors, thinking they are other instances?

    Sorry, hope that helps. At least I know what is causing the bug.

    Thanks
     
    Lo-renzo likes this.