<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=521&amp;type=atom" />
	<updated>2017-05-01T13:09:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=521</id>
		<entry>
			<title type="html"><![CDATA[Re: How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2286#p2286" />
			<content type="html"><![CDATA[<p>Thanks for the quick response.<br />It works.</p>]]></content>
			<author>
				<name><![CDATA[neelg]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=412</uri>
			</author>
			<updated>2017-05-01T13:09:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2286#p2286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2277#p2277" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-04-27T16:12:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2277#p2277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to convert OnlineMapsGoogleResult.Photo[] to NGUI UI Texture]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2274#p2274" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[neelg]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=412</uri>
			</author>
			<updated>2017-04-27T05:35:01Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2274#p2274</id>
		</entry>
</feed>
