<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — [Threading] get_isPlaying can only be called from the main thread]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1053&amp;type=atom" />
	<updated>2019-03-09T12:24:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1053</id>
		<entry>
			<title type="html"><![CDATA[Re: [Threading] get_isPlaying can only be called from the main thread]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4615#p4615" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thanks for the bug report.<br />The problem has been fixed.<br />The new version (3.0.3) will be available through the built-in update system in 24 hours.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-03-09T12:24:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4615#p4615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Threading] get_isPlaying can only be called from the main thread]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4613#p4613" />
			<content type="html"><![CDATA[<p>Salute,<br />when i make a new Map with: 2D, UIImageRenderer (on new panel object), Cache-Plugin, Location-Plugin and run the app i get the following error:<br /></p><div class="codebox"><pre><code>get_isPlaying can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don&#039;t use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
UnityEngine.Application:get_isPlaying()
OnlineMapsInteractiveElementManager`2:get_instance() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsInteractiveElementManager.cs:31)
OnlineMapsBuffer:GenerateFrontBuffer() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsBuffer.cs:256)</code></pre></div><p>and the following try/catch exception:<br /></p><div class="codebox"><pre><code>get_isPlaying can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don&#039;t use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at (wrapper managed-to-native) UnityEngine.Application:get_isPlaying ()
  at OnlineMapsInteractiveElementManager`2[OnlineMapsDrawingElementManager,OnlineMapsDrawingElement].get_instance () [0x00016] in F:\...\Assets\Infinity Code\Online maps\Scripts\Core\OnlineMapsInteractiveElementManager.cs:31 
  at OnlineMapsBuffer.GenerateFrontBuffer () [0x00281] in F:\...\Assets\Infinity Code\Online maps\Scripts\Core\OnlineMapsBuffer.cs:256 
UnityEngine.Debug:Log(Object)
OnlineMapsBuffer:GenerateFrontBuffer() (at Assets/Infinity Code/Online maps/Scripts/Core/OnlineMapsBuffer.cs:268)</code></pre></div><p>This happen in my exsiting Project and a complete new one.<br />I can use the map quite normal so far. If i get some issues i will update here.</p>]]></content>
			<author>
				<name><![CDATA[Sinthien]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=652</uri>
			</author>
			<updated>2019-03-09T12:00:57Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4613#p4613</id>
		</entry>
</feed>
