This script sets window position and the topmost option.
You can import this asset from UnityPackage.
You have to import following assets to use this asset.
Add scripts into your scene and set the parameters from Inspector.
Argument | Description |
---|---|
Screen Position X | Window top-left position X in px. |
Screen Position Y | Window top-left position Y in px. |
Topmost | Window will always keeps top or not. |
Interval Time | Set position in each interval time. If set 0, do once. |
You can also use some command line arguments. If set, these parameters override existing parameters.
Argument | Description |
---|---|
-screen-position-x | Set "Screen Position X". |
-screen-position-y | Set "Screen Position Y". |
-topmost | Set "Topmost" and "Interval Time". |
Sample.exe -popupwindow -screen-width 640 -screen-height 480 -screen-position-x 200 -screen-position-y 200 -topmost 0
- Windows only.
- Window must be popupwindow or windowed mode.