<?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 — EventSystem.current null reference issue]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=954</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=954&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in EventSystem.current null reference issue.]]></description>
		<lastBuildDate>Thu, 15 Nov 2018 10:05:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: EventSystem.current null reference issue]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4243#p4243</link>
			<description><![CDATA[<p>Hello.</p><p>OnlineMapsControlBaseUI is the base class for OnlineMapsUIImageControl and OnlineMapsUIRawImageControl.<br />EventSystem is a mandatory part of uGUI, without which interaction with UI will not work.<br />So what&#039;s the point of disabling EventSystem?</p><p>We added this check, and in the next version HitTest will return false if EventSystem.current == null.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Thu, 15 Nov 2018 10:05:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4243#p4243</guid>
		</item>
		<item>
			<title><![CDATA[EventSystem.current null reference issue]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=4242#p4242</link>
			<description><![CDATA[<p>Hello guys,<br />we used your plugin for a while and we detect a lil&#039; issue into OnlineMapsControlBaseUI.cs.</p><p>We have a case where we disabled the EventSystem.current with :<br />EventSystem.current.enabled = false;</p><p>And this create a null reference on the EventSystem.current in your script cause there is a missing check to avoid this.</p><p>Line 132, I replace :<br />EventSystem.current.RaycastAll(pe, hits);</p><p>with :<br />if (EventSystem.current != null)<br />&nbsp; &nbsp; EventSystem.current.RaycastAll(pe, hits);</p>]]></description>
			<author><![CDATA[null@example.com (Lszt)]]></author>
			<pubDate>Thu, 15 Nov 2018 09:49:19 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=4242#p4242</guid>
		</item>
	</channel>
</rss>
