how do i force it to be resizable in windows mode?
-hacky solution, not the best.
change current desktop settings to 800x600 or any resolution you want.
open the file, switch to windowed mode by alt + enter
change resolution back to default 1920x1080
and there you have it, windowed in 800x600
-created a powershell script instead to run it windowed
-edit
been trying to keep the window active as the vids stop as soon as I have another active window
Does anyone know how to keep the file active?
been at it for some time can't get it to work hahaha
$exePath = "Friends.exe"
$arguments = "-screen-width 1280 -screen-height 800 -windowed"
# Start the Unity process
$process = Start-Process -FilePath $exePath -ArgumentList $arguments -PassThru
# Wait for the Unity window to appear
Start-Sleep -Seconds 10
# Set Unity window to always on top
$unityWindow = Get-Process | Where-Object { $_.MainWindowTitle -like "Unity*"}
if ($unityWindow) {
$sig = '[DllImport("user32.dll")] public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);'
$import = Add-Type -MemberDefinition $sig -Name WindowAPI -Namespace Win32 -PassThru
$HWND_TOPMOST = -1
$SWP_NOMOVE = 0x0002
$SWP_NOSIZE = 0x0001
[Win32.WindowAPI]::SetWindowPos($unityWindow.MainWindowHandle, $HWND_TOPMOST, 0, 0, 0, 0, ($SWP_NOMOVE -bor $SWP_NOSIZE)) | Out-Null
}
# Keep the script running
while ($true) {
Start-Sleep -Seconds 1
}