CM3D2.SubScreen.Plugin.SubScreen.SetLocalTexture C# (CSharp) Method

SetLocalTexture() private method

private SetLocalTexture ( GameObject gameObject, string filePath ) : System.Collections.IEnumerator
gameObject UnityEngine.GameObject
filePath string
return System.Collections.IEnumerator
        private System.Collections.IEnumerator SetLocalTexture(GameObject gameObject, string filePath)
        {
            DebugLog("SetLocalTexture:", filePath);
            WWW file = new WWW("file://" + filePath);
            yield return file;
            gameObject.GetComponent<Renderer>().material.mainTexture = file.texture;
        }