Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question Window opens up on the left right corner

Discussion in 'Windows' started by leblitzer, Jan 19, 2023.

  1. leblitzer


    Jul 14, 2022

    Window opens up on the left right corner for matter of second

    I want it appears on the center directly for prevent that glitch.

    Is it possbile to hide the window when unity instaciate it?

    I use c# dll for my window:
    private void ModeColorkey(int i)
    hWnd = GetActiveWindow();
    MARGINS margins = new MARGINS { cxLeftWidth = -1 };
    DwmExtendFrameIntoClientArea(hWnd, ref margins);
    SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_LAYERED);
    SetLayeredWindowAttributes(hWnd, 0x00000000, 0, 0);
    SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, i);
    Application.runInBackground = true;

    Attached Files: