UIS + UCC integration usage question

difqk3

New member
View Type = Top down
Control = Vitual Joystick
"Disable Cursor" = Uncheck
"Enable Cursor With Escape" = Uncheck

1. The cursor disappears when you close the inventory in its current state. I want to know a solution.

2. I don't want to attack in the direction of the cursor.
I want to attack in the direction of the character. How to fix it?
 
@Justin Not by default, in the UIS demo we do not disable the cursor at all.

I double checked the code and it seems we have hard coded to enable/disable the cursor when opening/closing the main menu in the integration Bridge component:

Code:
/// <summary>
/// The Inventory menu has been opened or closed.
/// </summary>
/// <param name="openClosePanelInfo">Info about the panel state.</param>
private void OnOpenCloseMenu(PanelEventData openClosePanelInfo)
{
    if (openClosePanelInfo.ThisPanel.IsMenuPanel == false) {
        return;
    }
    var open = openClosePanelInfo.Open;

    EventHandler.ExecuteEvent<bool>(m_GameObject, "OnEnableGameplayInput", !open);
    EventHandler.ExecuteEvent<bool>(m_GameObject, "OnShowUI", !open);
    Cursor.visible = open;
    Cursor.lockState = open ? CursorLockMode.None : CursorLockMode.Locked;
}

Maybe we should make those changes optional? Including the ShowUI and Enable GameplayInput.

@difqk3 For the moment you can change the source code manually until we make the next update.
This function is on line 1458 in the UltimateInventorySystemBridge script.
 
Top