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
Post a Comment