videokit-ai / videokit

Low-code, cross-platform media SDK for Unity Engine. Register at https://videokit.ai
https://videokit.ai
Apache License 2.0
107 stars 14 forks source link

Add support for Unity UI Toolkit in Unity 6 #119

Closed tomashined closed 5 months ago

tomashined commented 6 months ago

Hello. I need to add a simpler connection with the UI Toolkit. That is, either you should create your own Custom Controls to display video, or simplify the way I'm doing it now... I'm currently doing it like this: after getting the first frame from the camera, I pass "VideoKitCameraManager.texture as Texture2D" to the VisualElement through the standard assignment "style.backgroundImage = new StyleBackground(texture)".

olokobayusuf commented 5 months ago

How you are doing this currently is correct. We will revisit this later.