I want to record a GIF as a tutorial, but I don’t know how to insert it into the UI.
Is there any good way?
Hello zgx,
I don’t think Unity supports GIFs, but you can convert it to mp4 and then use a render texture.
In your asset folder, Right Click > Create > Render Texture
Then, in your scene, you’ll need a GameObject with the “Video Player” component. Put your video clip in the “Video Clip” property, select “Render Texture” as the “Render Mode” property, and in the “Target Texture” property, put your Render Texture.
Lastly, in your UI, set the background image property of the visual element to this render texture.
Here’s a screenshot showing the Render Texture, the GameObject with a Video Player, and my Visual Element in the Ui Builder.
Hope this helps, have a good day!
Thanks,I’ll try it.
This is the 2D forum, not the UI forum and the tags would suggest a physics question. Please use the dedicated features support forums, in this case UIToolkit and only use relevant tags.
I’ll move your post for you and remove the tags.
Thanks.