<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Cant find camera in VR app ?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=639&amp;type=atom" />
	<updated>2017-09-02T23:25:24Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=639</id>
		<entry>
			<title type="html"><![CDATA[Re: Cant find camera in VR app ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2752#p2752" />
			<content type="html"><![CDATA[<p>Hello.</p><p>This is not a bug.<br />The camera is needed at least for raytracing.<br />Just make a temporary camera that will be used until your VR camera is initialized.<br />Then you can replace OnlineMapsControlBase3D.activeCamera.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2017-09-02T23:25:24Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2752#p2752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cant find camera in VR app ?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=2751#p2751" />
			<content type="html"><![CDATA[<p>This error fires continually in a VR app:</p><p>NullReferenceException: Object reference not set to an instance of an object<br />OnlineMapsTileSetControl.HitTest () (at Assets/Infinity Code/Online maps/Scripts/Controls/OnlineMapsTileSetControl.cs:646)<br />OnlineMapsControlBase.Update () (at Assets/Infinity Code/Online maps/Scripts/Controls/OnlineMapsControlBase.cs:740)</p><p>I am guessing HitTest is called automatically by OnlineMaps and it is not finding the camera? There is no camera setup in the scene until the scene knows what VR SDK/device the user is using. But the error still continues each frame once the VR camera rig is up and running (and the camera is marked and MainCamera).</p>]]></content>
			<author>
				<name><![CDATA[braden]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=499</uri>
			</author>
			<updated>2017-09-02T03:26:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=2751#p2751</id>
		</entry>
</feed>
