<?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 — Deactivate the markers outside the field of view ?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1779</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1779&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Deactivate the markers outside the field of view ?.]]></description>
		<lastBuildDate>Sat, 22 May 2021 10:55:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Deactivate the markers outside the field of view ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7482#p7482</link>
			<description><![CDATA[<p>You need to iterate over all markers, and using Renderer.isVisible, check if it is visible and do the action that you need.<br /><a href="https://docs.unity3d.com/ScriptReference/Renderer-isVisible.html">https://docs.unity3d.com/ScriptReferenc … sible.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sat, 22 May 2021 10:55:18 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7482#p7482</guid>
		</item>
		<item>
			<title><![CDATA[Re: Deactivate the markers outside the field of view ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7481#p7481</link>
			<description><![CDATA[<div class="quotebox"><cite>Alex Vertax wrote:</cite><blockquote><p>Hello.</p><p>You can try. Unity has an example of this.<br /><a href="https://docs.unity3d.com/ScriptReference/Renderer.OnBecameInvisible.html">https://docs.unity3d.com/ScriptReferenc … sible.html</a></p></blockquote></div><p>Thanks for the asnwer, but there was another question in my previous post :</p><p>Is there a way to know the number of markers which are in the camera field, to make an action (for instance recenter the camera) if no marker is visible ?<br />Best regards<br />Phil</p>]]></description>
			<author><![CDATA[null@example.com (philzmz)]]></author>
			<pubDate>Sat, 22 May 2021 08:22:57 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7481#p7481</guid>
		</item>
		<item>
			<title><![CDATA[Re: Deactivate the markers outside the field of view ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7478#p7478</link>
			<description><![CDATA[<p>Hello.</p><p>You can try. Unity has an example of this.<br /><a href="https://docs.unity3d.com/ScriptReference/Renderer.OnBecameInvisible.html">https://docs.unity3d.com/ScriptReferenc … sible.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 21 May 2021 09:37:40 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7478#p7478</guid>
		</item>
		<item>
			<title><![CDATA[Deactivate the markers outside the field of view ?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7476#p7476</link>
			<description><![CDATA[<p>Imagine a map with for instance 400 markers all around the camera, each marker with a &quot;look at camera&quot; script, so it is&nbsp; always facing the camera. </p><p>If the camera FOV is 90°, only 1/4 of the markers (about one hundred) are displayed in the game view, but the 300 others, not in the field of view, continue to follow the camera position. Would it be interesting, in terms of performance, to deactivate the &quot;look at camera&quot; for the markers that are not displayed, and even the markers themselves ?</p><p>Is there a way to know the number of markers which are in the camera field, to make an action (for instance recenter the camera) if no marker is visible.</p><p>Best regards, Phil</p>]]></description>
			<author><![CDATA[null@example.com (philzmz)]]></author>
			<pubDate>Thu, 20 May 2021 20:00:52 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7476#p7476</guid>
		</item>
	</channel>
</rss>
