[UI Designer] Delete and then Create `Layout Group Navigation` could not be recognized in editor

Justus

Member
1. Select a inventory grid in UI Designer
2. Delete `Layout Group Navigation`
1652259214571.png
3. Create `Layout Group Navigation`
1652259271853.png
4. the created `Layout Group Navigation` component could not recognized by UI Designer correctly.
1652259445741.png
 
Thanks for letting us know.

In the GenericGridEditorOptions script replace the function:

Code:
private void AddRemoveNavigation()
{
    if (m_Content == null) {
        Debug.LogWarning("The Content is missing, cannot find layout group");
        return;
    }
    if (m_LayoutGroupNavigation == null) {
        m_Content.gameObject.AddComponent<LayoutGroupNavigation>();
        Refresh();
        return;
    }
    RemoveComponent(m_LayoutGroupNavigation);
    Refresh();
}

This will be fixed in the next update coming very soon
 
Top