Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to play video in ui unity

//Step 1: Add Video Clip to assets
//Step 2: Create "Render Texture" in assets (Create-Render Texture)
//Step 3: create "Video Player" in hierarchy (Video-Video Player)
//Step 4: Create "Raw Image" as a child to your canvas (UI - Raw Image)
//Step 5: Drag your Render Texture to the "texture" of your Raw Image
//Step 6: Drag your Video Clip to the "video clip" of the video player
//Step 7: Drag your Render Texture to the "target texture" of the Video Player
//This should work. If this doesn't work check the video in the source.
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to access gameobject name 
Csharp :: unity string format time 
Csharp :: random number generator c# 
Csharp :: how to lock and hide the cursor unity 
Csharp :: #region in c# 
Csharp :: remove a specific line in richtextbox c# 
Csharp :: c# get object property value by name 
Csharp :: raycast unity 
Csharp :: unity game sleep on hit 
Csharp :: difference between namespace and assembly in c# 
Csharp :: unity how to add force 
Csharp :: subtract two times c# 
Csharp :: how to spawn coins randomly around the screen unity 2d 
Csharp :: executable path with app name c# 
Csharp :: remove all text after string c# 
Csharp :: json property annotation c# 
Csharp :: stock span problem c# 
Csharp :: c# date to string yyyy-mm-dd 
Csharp :: how to make a quit button in unity 
Csharp :: audiomixer get float 
Csharp :: .NET Microsoft.dotnet-httprepl 
Csharp :: overload indexer c# 
Csharp :: string format comma c# 
Csharp :: c# serviceCollection AddLogging 
Csharp :: set label position winforms 
Csharp :: unity put children in list 
Csharp :: unity object to mouse 
Csharp :: how to check if string can be converted to int c# 
Csharp :: c# override index operator 
Csharp :: linq where list contains another list 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =