c# - How to Append videos in Unity3D programmatically -


i working in unity3d video gallery app. need upload , download videos server. can append 4 videos in unity3d programmatically , upload.

please suggest me solution. highly obliged.

i order load video server or local filesystem not directly in asset folder need use www.

here example documentation image works same way video:

public class exampleclass : monobehaviour {     public string url = "http://images.earthcam.com/ec_metros/ourcams/fridays.jpg";     ienumerator start() {         www www = new www(url);         yield return www;         renderer renderer = getcomponent<renderer>();         renderer.material.maintexture = www.texture;     } } 

here link unity documentation: www


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -