private void GetImage(string path) { WWW www = new WWW("file://" + path); Sprite sprite = Sprite.Create(www.texture, new Rect(0f, 0f, www.texture.width, www.texture.height), new Vector2(0.5f, 0.5f), 100); _sprite = sprite; _onImageLoad(); _onImageLoad = null; }
public void OnLoadImage(object sender, OnImageLoad eventArgs) { image1 = eventArgs.img; path = eventArgs.file; }
public void OnLoadImage(object sender, OnImageLoad eventArgs) {//TODO: Add your code here image = eventArgs.img; path = eventArgs.file; }
public void ShowGallery(OnImageLoad onImageLoad) { this._onImageLoad = onImageLoad; _unityInstance.CallStatic("showGallery", _unityActivity); }