<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — EventSystem.current null reference issue]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=954&amp;type=atom" />
	<updated>2018-11-15T10:05:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=954</id>
		<entry>
			<title type="html"><![CDATA[Re: EventSystem.current null reference issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4243#p4243" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2018-11-15T10:05:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4243#p4243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[EventSystem.current null reference issue]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4242#p4242" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Lszt]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=839</uri>
			</author>
			<updated>2018-11-15T09:49:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4242#p4242</id>
		</entry>
</feed>
