Answers for "unity play video button"

C#
7

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.
Posted by: Guest on July-28-2020
3

how to make play button in unity

using UnityEngine.SceneManagement;

public void play()
{
	SceneManager.LoadScene("YourSceneName"); 
}
Posted by: Guest on September-20-2021

C# Answers by Framework

Browse Popular Code Answers by Language