Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Reorderable list element can't be dragged #79

Open
Qriva opened this issue Nov 23, 2024 · 2 comments
Open

[BUG] Reorderable list element can't be dragged #79

Qriva opened this issue Nov 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Qriva
Copy link

Qriva commented Nov 23, 2024

What happened?

Hi, I have array of serializable elements and after upgrading package version (I am pretty sure it worked before) there is no option to drag elements to change order. The reason is foldout arrow in the same position as drag area.
obraz

Package Version

1.6.1

Unity Version

2022.3.21

@Qriva Qriva added the bug Something isn't working label Nov 23, 2024
@mackysoft
Copy link
Owner

Hi. It looks different from my environment. Are you using an editor extension?
Below is a rendering in 2022.3.21f1 in my environment.
image
It would also be helpful if you could attach a screenshot of the entire SubclassSelector as drawn in the Inspector.

@Qriva
Copy link
Author

Qriva commented Nov 24, 2024

I don't think there is custom drawer or editor that would affect rendering of this arrow.
I made separate serializable class to test with new component and I have got the same result, everything is rendered correctly except foldout arrow.
GIF 24 11 2024 15-57-49
So the last thing in my mind that could possibly cause this bug in my project is NaughtyAttributes package.

My test code:

public class PlaneTest : MonoBehaviour
{
    [SerializeReference, SubclassSelector] public TestConfig[] configurations;
}

[System.Serializable]
public abstract class TestConfig
{
    public abstract float Speed { get; }

    public abstract void Execute();
}

[System.Serializable]
public class FirstConfig : TestConfig
{
    public float damage = 1f;
    public float knockback = 0f;

    public override float Speed => 1f;

    public override void Execute()
    {
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants