https://github.com/xjine/unity_windowpositionmanager
Set window position and the topmost option.
https://github.com/xjine/unity_windowpositionmanager
assets unity
Last synced: 8 months ago
JSON representation
Set window position and the topmost option.
- Host: GitHub
- URL: https://github.com/xjine/unity_windowpositionmanager
- Owner: XJINE
- License: bsd-3-clause
- Created: 2017-02-24T04:05:17.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2023-02-13T08:42:46.000Z (over 3 years ago)
- Last Synced: 2025-04-03T13:51:20.296Z (about 1 year ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 1.63 MB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity_WindowPositionManager
This script sets window position and the topmost option.

## Importing
You can use Package Manager or import it directly.
```
https://github.com/XJINE/Unity_WindowPositionManager.git?path=Assets/Packages/WindowPositionManager
```
### Dependencies
This project use following resources.
- https://github.com/XJINE/Unity_SingletonMonoBehaviour
- https://github.com/XJINE/Unity_CommandLineArgs
## How to Use
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. |
### Arguments
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
```
## Limitation
- Windows only.
- Window must be popupwindow or windowed mode.