<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=521</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=521&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture.]]></description>
		<lastBuildDate>Mon, 01 May 2017 13:09:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2286#p2286</link>
			<description><![CDATA[<p>Thanks for the quick response.<br />It works.</p>]]></description>
			<author><![CDATA[null@example.com (neelg)]]></author>
			<pubDate>Mon, 01 May 2017 13:09:34 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2286#p2286</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2277#p2277</link>
			<description><![CDATA[<p>Hello.</p><p>OnlineMapsGoogleResult.Photo contains only photo id (photo_reference).<br />To download a photo, use OnlineMapsGooglePlacesResult.Photo.Download.<br /><a href="http://infinity-code.com/doxygen/online-maps/classOnlineMapsGooglePlacesResult_1_1Photo.html#a57325a997cebe9d810c0a514dd671ba3">http://infinity-code.com/doxygen/online … 14dd671ba3</a></p><p>Example:<br /></p><div class="codebox"><pre><code>Texture2D[] photos = new Texture2D[result.photos.Length];

for (int i = 0; i &lt; result.photos.Length; i++)
{
    int photoIndex = i;

    result.photos[photoIndex].Download(apiKey).OnComplete += delegate (Texture2D p)
    {
        photos[photoIndex] = p;
    };
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 27 Apr 2017 16:12:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2277#p2277</guid>
		</item>
		<item>
			<title><![CDATA[How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=2274#p2274</link>
			<description><![CDATA[<p>Hello,</p><p>I am using OnlineMapsGooglePlacesResult &amp; I want to show the place image in NGUI UI Texture object.</p><p>I am getting OnlineMapsGooglePlacesResult result.photo[], now how to add the photo[] image into NGUI UI Texture.</p>]]></description>
			<author><![CDATA[null@example.com (neelg)]]></author>
			<pubDate>Thu, 27 Apr 2017 05:35:01 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=2274#p2274</guid>
		</item>
	</channel>
</rss>
