Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Show the videofeed of a different application in unity

Discussion in 'General Graphics' started by Hazzel, Jul 12, 2022.

  1. Hazzel

    Hazzel

    Joined:
    Feb 26, 2022
    Posts:
    14
    Hello,

    i want to have the live video of a different programm in unity so i can use it as a background, kinda the same way obs captures game footage/application footage i couldnt find a suiting answer in google.

    any help would be appreciated :)
     
  2. julienkay

    julienkay

    Joined:
    Nov 12, 2013
    Posts:
    159
    Which platform do you need this to run on?

    For Windows there's this package that can capture individual windows and another one that can grab the entire screen. Maybe these are useful for your use case.
     
    Hazzel likes this.
  3. Hazzel

    Hazzel

    Joined:
    Feb 26, 2022
    Posts:
    14
    the uwindowcapture package looked like what i was looking for but i couldnt resolve a missing DLL Exception, maybe its because i am still on win7 ^^

    DllNotFoundException: uWindowCapture assembly:<unknown assembly> type:<unknown type> member:(null)
    uWindowCapture.UwcManager.Awake () (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcManager.cs:137)
    UnityEngine.GameObject:AddComponent()
    uWindowCapture.UwcManager:CreateInstance() (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcManager.cs:30)
    uWindowCapture.UwcManager:get_instance() (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcManager.cs:16)
    uWindowCapture.UwcManager:get_windows() (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcManager.cs:104)
    uWindowCapture.UwcManager:Find(String, Boolean) (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcManager.cs:299)
    uWindowCapture.UwcWindowTexture:UpdateTargetWindow() (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcWindowTexture.cs:355)
    uWindowCapture.UwcWindowTexture:Update() (at Library/PackageCache/com.hecomi.uwindowcapture@0412fe09e1/Runtime/UwcWindowTexture.cs:226)
     
  4. julienkay

    julienkay

    Joined:
    Nov 12, 2013
    Posts:
    159
    Hazzel likes this.
  5. Hazzel

    Hazzel

    Joined:
    Feb 26, 2022
    Posts:
    14
    oh thank you so much, it must only work for win7 until GPU prices have come down further :D
    i gonna try the older version, thanks a lot for all the help
     
    julienkay likes this.
  6. Hazzel

    Hazzel

    Joined:
    Feb 26, 2022
    Posts:
    14
    thanks i got it to work <3