<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build in ArcGIS Maps SDK for Unity Questions</title>
    <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326033#M607</link>
    <description>&lt;P&gt;Okay these all look correct.&lt;BR /&gt;This issue is most likely with the shaders that clip the map to the extent. I have seen a similar issue in an XR project where another plugin modified the clipping shaders and broke them.&lt;BR /&gt;Can you please try removing, then re-adding the ArcGIS Maps SDK plugin in your Oculus project?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Specifically-&lt;BR /&gt;&lt;EM&gt;Packages &amp;gt; ArcGIS Maps SDK for Unity &amp;gt; SDK &amp;gt; Resources &amp;gt; Shaders &amp;gt; AlphaClipping.hlsl&lt;/EM&gt;&lt;BR /&gt;This is used to clip to the radius.&lt;BR /&gt;&lt;EM&gt;Packages &amp;gt; ArcGIS Maps SDK for Unity &amp;gt; SDK &amp;gt; Resources &amp;gt; Shaders &amp;gt;&amp;nbsp;TileSurfaceCalculateAlphaClipping.shadersubgraph&lt;/EM&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;EM&gt;Packages &amp;gt; ArcGIS Maps SDK for Unity &amp;gt; SDK &amp;gt; Resources &amp;gt; Shaders &amp;gt; SceneNodeSurfaceImpl.shadersubgraph&lt;/EM&gt;&lt;BR /&gt;use this shader code for clipping. If any of these have been modified, it may be causing this issue.&lt;BR /&gt;&lt;BR /&gt;Zack&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 17:43:23 GMT</pubDate>
    <dc:creator>ZackAllen</dc:creator>
    <dc:date>2023-09-06T17:43:23Z</dc:date>
    <item>
      <title>ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1325537#M600</link>
      <description>&lt;P&gt;I'm trying to create a tabletop map for a Quest Pro app in Unity 2021.3.24f. Inserting a tabletop map prefab into the scene seems to only render the center tiles. Doesn't seem to be specific to whether the map extent shape is circular, square, or rectangular. Could someone help me troubleshoot what might be happening? I'm able to get a circular map on a desktop version of the app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-05 140922.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79867iE51F9DEF85064638/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-05 140922.png" alt="Screenshot 2023-09-05 140922.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1325537#M600</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-05T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1325660#M602</link>
      <description>&lt;P&gt;Hi Geoffrey, thank you for reaching out.&lt;BR /&gt;Can you please share your Map component properties? It also would be helpful to see the properties of the Tabletop component as well.&lt;BR /&gt;Currently, only circular extents are supported for the tabletop components. Using square or rectangular with version 1.3 will not work by default.&lt;BR /&gt;&lt;BR /&gt;Zack&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 22:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1325660#M602</guid>
      <dc:creator>ZackAllen</dc:creator>
      <dc:date>2023-09-05T22:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1325689#M603</link>
      <description>&lt;P&gt;Hi Zack,&lt;/P&gt;&lt;P&gt;I'm using the Tabletop Prefab in ArcGIS Unity SDK v1.3.0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoffreyBund_0-1693959960680.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79906i0471B56138D4CED5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoffreyBund_0-1693959960680.png" alt="GeoffreyBund_0-1693959960680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 00:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1325689#M603</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-06T00:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326007#M606</link>
      <description>&lt;P&gt;Here are the tabletop component properties.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-06 130307.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79998i3736F3F2D8BFCD6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-06 130307.png" alt="Screenshot 2023-09-06 130307.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 17:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326007#M606</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-06T17:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326033#M607</link>
      <description>&lt;P&gt;Okay these all look correct.&lt;BR /&gt;This issue is most likely with the shaders that clip the map to the extent. I have seen a similar issue in an XR project where another plugin modified the clipping shaders and broke them.&lt;BR /&gt;Can you please try removing, then re-adding the ArcGIS Maps SDK plugin in your Oculus project?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Specifically-&lt;BR /&gt;&lt;EM&gt;Packages &amp;gt; ArcGIS Maps SDK for Unity &amp;gt; SDK &amp;gt; Resources &amp;gt; Shaders &amp;gt; AlphaClipping.hlsl&lt;/EM&gt;&lt;BR /&gt;This is used to clip to the radius.&lt;BR /&gt;&lt;EM&gt;Packages &amp;gt; ArcGIS Maps SDK for Unity &amp;gt; SDK &amp;gt; Resources &amp;gt; Shaders &amp;gt;&amp;nbsp;TileSurfaceCalculateAlphaClipping.shadersubgraph&lt;/EM&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;EM&gt;Packages &amp;gt; ArcGIS Maps SDK for Unity &amp;gt; SDK &amp;gt; Resources &amp;gt; Shaders &amp;gt; SceneNodeSurfaceImpl.shadersubgraph&lt;/EM&gt;&lt;BR /&gt;use this shader code for clipping. If any of these have been modified, it may be causing this issue.&lt;BR /&gt;&lt;BR /&gt;Zack&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 17:43:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326033#M607</guid>
      <dc:creator>ZackAllen</dc:creator>
      <dc:date>2023-09-06T17:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326782#M609</link>
      <description>&lt;P&gt;Is there a way to check&amp;nbsp;if the shaders have been modified? I tried reimporting the plugin and I'm still seeing this clipping issue. Also, is there a way I can find any other plugins interfering with this shader? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 14:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326782#M609</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-08T14:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326783#M610</link>
      <description>&lt;P&gt;Also, I did not mention this earlier, but my project uses URP and not HDRP&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 14:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1326783#M610</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-08T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328277#M616</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/318605"&gt;@ZackAllen&lt;/a&gt;&amp;nbsp;could you please advice on how I can check if another plugin is interfering with the ArcGIS shader? I've tried reimporting the ArcGIS plugin but the edge tiles don't seem to be clipped properly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 14:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328277#M616</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-13T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328542#M617</link>
      <description>&lt;P&gt;Hi Geoffrey. I created a scene with a tabletop map and deployed it to a Meta Quest 2. I was unable to reproduce the issue you shared. I have additional questions for you:&lt;BR /&gt;- What texture compression are you using? (I used ETC2, haven't tested others yet)&lt;BR /&gt;- Are you moving the map? Are you modifying the center or radius during runtime?&lt;BR /&gt;&lt;BR /&gt;Zack&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 23:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328542#M617</guid>
      <dc:creator>ZackAllen</dc:creator>
      <dc:date>2023-09-13T23:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328717#M618</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/318605"&gt;@ZackAllen&lt;/a&gt;&amp;nbsp;, I was also able to create a scene with the tabletop map on a blank project and deploy to a Quest headset. Yes, the center and radius are changed at runtime but I didn't see any issues on this new from-scratch project. I use ETC2 compression. But when I do the same in our active Unity project (same editor version, and project settings) I get that partially rendered map. You'd mentioned that it might be due to a different plugin interfering. If that is the case, is there a way to check what might be interfering?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 15:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328717#M618</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-14T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328833#M619</link>
      <description>&lt;P&gt;Hi Geoffrey. Unfortunately, I don't have an absolute way to check. The shader issue I saw in the past was with a plugin for different hardware, so it wouldn't apply to your project. One more thing to try could be reimporting the ArcGIS Maps SDK package from the project explorer. This is what I do when I have shader cache issues. The reimport brings in the materials and shader subgraphs again.&lt;BR /&gt;&lt;BR /&gt;In order to troubleshoot any further, I would need access to a project with the issue present.&lt;BR /&gt;&lt;BR /&gt;Zack&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328833#M619</guid>
      <dc:creator>ZackAllen</dc:creator>
      <dc:date>2023-09-14T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328839#M620</link>
      <description>&lt;P&gt;On the topic of square and rectangle extents-&lt;BR /&gt;We are adding this functionality to the plugin in a future release.&lt;BR /&gt;In the meantime, you can use this modified tabletop controller to use squares and rectangles now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// COPYRIGHT 1995-2023 ESRI
// TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
// Unpublished material - all rights reserved under the
// Copyright Laws of the United States and applicable international
// laws, treaties, and conventions.
//
// For additional information, contact:
// Attn: Contracts and Legal Department
// Environmental Systems Research Institute, Inc.
// 380 New York Street
// Redlands, California 92373
// USA
//
// email: legal@esri.com
using Esri.ArcGISMapsSDK.Components;
using Esri.ArcGISMapsSDK.Utils;
using Esri.GameEngine.Geometry;
using Unity.Mathematics;
using UnityEngine;

namespace Esri.ArcGISMapsSDK.Samples.Components
{
	[DisallowMultipleComponent]
	[ExecuteAlways]
	[AddComponentMenu("ArcGIS Maps SDK/Samples/ArcGIS Tabletop Controller")]
	public class ArcGISTabletopControllerComponent : MonoBehaviour
	{
		public Transform TransformWrapper;
		public ArcGISMapComponent MapComponent;
		public ArcGISLocationComponent CameraComponent;

		private ArcGISPoint lastCenter;
		private double? lastElevationOffset;
		private double? lastRadius;

		[SerializeField]
		[OnChangedCall("OnCenterChanged")]
		private ArcGISPoint center = new ArcGISPoint(0, 0, 0, ArcGISSpatialReference.WGS84());

		public ArcGISPoint Center
		{
			get =&amp;gt; center;
			set
			{
				if (center != value)
				{
					center = value;
					OnCenterChanged();
				}
			}
		}

		[SerializeField]
		[OnChangedCall("OnElevationOffsetChanged")]
		private double elevationOffset;

		public double ElevationOffset
		{
			get =&amp;gt; elevationOffset;
			set
			{
				if (elevationOffset != value)
				{
					elevationOffset = value;
					OnElevationOffsetChanged();
				}
			}
		}

		[SerializeField]
		[OnChangedCall("OnRadiusChanged")]
		private double radius;

		public double Radius
		{
			get =&amp;gt; radius;
			set
			{
				if (radius != value)
				{
					radius = value;
					OnRadiusChanged();
				}
			}
		}

		internal void OnCenterChanged()
		{
			PreUpdateTabletop();
		}

		private void OnDisable()
		{
			MapComponent.ExtentUpdated -= new ArcGISExtentUpdatedEventHandler(PostUpdateTabletop);
		}

		internal void OnElevationOffsetChanged()
		{
			PreUpdateTabletop();
		}

		private void OnEnable()
		{
			MapComponent.ExtentUpdated += new ArcGISExtentUpdatedEventHandler(PostUpdateTabletop);

			lastCenter = null;
			lastElevationOffset = null;
			lastRadius = null;

			PreUpdateTabletop();
		}

		internal void OnRadiusChanged()
		{
			PreUpdateTabletop();
		}

		private void PostUpdateTabletop(ArcGISExtentUpdatedEventArgs e)
		{
			if (!e.Type.HasValue)
			{
				return;
			}

			var areaMin = e.AreaMin.Value;
			var areaMax = e.AreaMax.Value;

			// Adjust center and scale only after all tiles were updated
			var width = areaMax.x - areaMin.x;
			var length = areaMax.y - areaMin.y;
			var height = areaMax.z - areaMin.z;
			var centerPosition = new double3(areaMin.x + width / 2.0, areaMin.y + length, areaMin.z + height / 2.0);

			MapComponent.OriginPosition = MapComponent.View.WorldToGeographic(centerPosition);

			var scale = 1.0 / math.max(width, length);

			TransformWrapper.localScale = new Vector3((float)scale, (float)scale, (float)scale);

			UpdateOffset();

			// We need to force an HP Root update to account for scale changes
			MapComponent.UpdateHPRoot();
		}

		private void PreUpdateTabletop()
		{
			bool needsOffsetUpdate = lastElevationOffset != ElevationOffset;
			bool needsExtentUpdate = lastCenter != Center || lastRadius != Radius;

			if (!needsExtentUpdate &amp;amp;&amp;amp; !needsOffsetUpdate)
			{
				return;
			}

			if (needsExtentUpdate)
			{
				double2 shapeDimensions = new double2(Radius, Radius);
				if (MapComponent.Extent.ExtentShape == MapExtentShapes.Rectangle)
				{
					var x = MapComponent.Extent.ShapeDimensions.x;
					var y = MapComponent.Extent.ShapeDimensions.y;

					// Maintain Radius as the larger value
					if (x &amp;gt; y)
					{
						shapeDimensions = new double2(Radius, Radius * y / x);
					}
					else
					{
						shapeDimensions = new double2(Radius * x / y, Radius);
					}
				}

				var newExtent = new ArcGISExtentInstanceData()
				{
					GeographicCenter = (ArcGISPoint)Center.Clone(),
					ExtentShape = MapComponent.Extent.ExtentShape,
					ShapeDimensions = shapeDimensions,
				};

				// Camera height should be radius to the furthest point. For square or rectangle, we use sqrt of 2 for diagonal distance to corner.
				var radiusDistance = MapComponent.Extent.ExtentShape == MapExtentShapes.Circle ? Radius : (Radius / 2) * math.sqrt(2);

				if (MapComponent.Extent == newExtent)
				{
					MapComponent.OriginPosition = newExtent.GeographicCenter;

					var scale = 1.0 / (2 * radiusDistance);

					TransformWrapper.localScale = new Vector3((float)scale, (float)scale, (float)scale);
				}
				else
				{
					MapComponent.Extent = new ArcGISExtentInstanceData()
					{
						GeographicCenter = (ArcGISPoint)Center.Clone(),
						ExtentShape = MapComponent.Extent.ExtentShape,
						ShapeDimensions = shapeDimensions,
					};
				}

				CameraComponent.Position = new ArcGISPoint(Center.X, Center.Y, radiusDistance, Center.SpatialReference);

				lastCenter = (ArcGISPoint)Center.Clone();
				lastRadius = Radius;
			}

			if (needsOffsetUpdate)
			{
				UpdateOffset();

				lastElevationOffset = ElevationOffset;
			}
		}

		/// &amp;lt;summary&amp;gt;
		/// Casts the ray against an horizontal plane plane centered at us and returns whether they intersected it.
		/// Returns in currentPoint the point relative to us in Universe space that intersected the plane centered at us
		/// &amp;lt;/summary&amp;gt;
		/// &amp;lt;param name="ray"&amp;gt;The ray to test.&amp;lt;/param&amp;gt;
		/// &amp;lt;param name="currentPoint"&amp;gt;The point relative to us in Universe space that intersected the plane centered at us.&amp;lt;/param&amp;gt;
		/// &amp;lt;returns&amp;gt;True if the ray intersects the plane, false otherwise.&amp;lt;/returns&amp;gt;
		/// &amp;lt;since&amp;gt;1.3.0&amp;lt;/since&amp;gt;
		private bool RaycastRelativeToCenter(Ray ray, out Vector3 currentPoint)
		{
			var planeCenter = MapComponent.transform.localToWorldMatrix.MultiplyPoint(Vector3.zero);
			var dragStartPlane = new Plane(Vector3.up, planeCenter);

			float dragStartEntry;
			if (dragStartPlane.Raycast(ray, out dragStartEntry))
			{
				currentPoint = MapComponent.transform.worldToLocalMatrix.MultiplyPoint(ray.GetPoint(dragStartEntry));

				return true;
			}
			else
			{
				currentPoint = Vector3.positiveInfinity;
			}

			return false;
		}

		/// &amp;lt;summary&amp;gt;
		/// Casts the ray against an horizontal plane plane centered at us and returns whether they intersected it inside the extent.
		/// Returns in currentPoint the point relative to us in Universe space that intersected the plane centered at us
		/// &amp;lt;/summary&amp;gt;
		/// &amp;lt;param name="ray"&amp;gt;The ray to test.&amp;lt;/param&amp;gt;
		/// &amp;lt;param name="currentPoint"&amp;gt;The point relative to us in Universe space that intersected the plane centered at us.&amp;lt;/param&amp;gt;
		/// &amp;lt;returns&amp;gt;True if the ray intersects the plane, false otherwise.&amp;lt;/returns&amp;gt;
		/// &amp;lt;since&amp;gt;1.3.0&amp;lt;/since&amp;gt;
		public bool Raycast(Ray ray, out Vector3 currentPoint)
		{
			RaycastRelativeToCenter(ray, out currentPoint);

			bool insideRadius = false;
			if (MapComponent.Extent.ExtentShape == MapExtentShapes.Circle)
			{
				insideRadius = Vector3.Distance(currentPoint, Vector3.zero) &amp;lt;= Radius;
			}
			else if (MapComponent.Extent.ExtentShape == MapExtentShapes.Square)
			{
				insideRadius = math.abs(currentPoint.x) &amp;lt; MapComponent.Extent.ShapeDimensions.x / 2 &amp;amp;&amp;amp; math.abs(currentPoint.z) &amp;lt; MapComponent.Extent.ShapeDimensions.x / 2;
			}
			else
			{
				insideRadius = math.abs(currentPoint.x) &amp;lt; MapComponent.Extent.ShapeDimensions.x / 2 &amp;amp;&amp;amp; math.abs(currentPoint.z) &amp;lt; MapComponent.Extent.ShapeDimensions.y / 2;
			}

			currentPoint = MapComponent.transform.localToWorldMatrix.MultiplyPoint(currentPoint);
			currentPoint = transform.worldToLocalMatrix.MultiplyPoint(currentPoint);

			return insideRadius;
		}

		private void Update()
		{
			if (!Application.isPlaying)
			{
				return;
			}

			PreUpdateTabletop();
		}

		private void UpdateOffset()
		{
			var newPosition = TransformWrapper.localPosition;

			newPosition.y = (float)(ElevationOffset * TransformWrapper.localScale.x);

			TransformWrapper.localPosition = newPosition;
		}
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Zack&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1328839#M620</guid>
      <dc:creator>ZackAllen</dc:creator>
      <dc:date>2023-09-14T18:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1331101#M625</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/318605"&gt;@ZackAllen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to share a link to our Unity project without propriety code but we've run into another issue. There's a huge memory leak with the Tabletop prefab in the Unity Editor. It happens&amp;nbsp;when build target is set to Android and a tabletop prefab is in the scene. And it only seems to happen when I switch from Unity to some other application (e.g. Chrome, or even Task Manager). When I switch back to Unity, the memory leak stops or slows down.&lt;/P&gt;&lt;P&gt;Switching to another application cause the Unity memory usage to increase fast but seemingly linearly. For example, from around 1GB to maybe 14 GB in a few seconds. But switching back to Unity keeps it stable again at 14GB. Switching away from unity again increases memory usage till around 99% total memory and then Unity can crash.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1331101#M625</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-21T15:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1331102#M626</link>
      <description>&lt;P&gt;I'll DM a link to a Unity project that exhibits this issue. But it should also be visible in a blank Unity 2022.3.9f1 project and Tabletop Map scene with the latest InputSystem, Oculus, and ArcGIS packages imported .&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1331102#M626</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-21T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1332282#M627</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I'm having a similar problem with HoloLens 2. In Unity Editor it renders quite well but when I compile the map (and a test cube that I create with the same material than the map) it doesn't render in the HoloLens device. I am using URP too. I've already updated the render pipeline and the shaders but with no positive result.&lt;/P&gt;&lt;P&gt;The object is present because I see the colliders but it doesn't render.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 07:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1332282#M627</guid>
      <dc:creator>albertoxrf</dc:creator>
      <dc:date>2023-09-26T07:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Tabletop Map only partially rendering for Quest Pro build</title>
      <link>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1333761#M642</link>
      <description>&lt;P&gt;Update: We've had to move our project to Unity 2022 from Unity 2021 to overcome this partial rendering issue. There might've been a package that was interfering with the ArcGIS renderer. But after testing by removing each of packages or adding them to a blank project we couldn't determine which package it could be. Even now, the Unity 2022 Editor is showing a partially rendered map, but the map is rendered correctly when actually built to the Quest device.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 14:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-maps-sdk-for-unity-questions/arcgis-tabletop-map-only-partially-rendering-for/m-p/1333761#M642</guid>
      <dc:creator>GeoffreyBund</dc:creator>
      <dc:date>2023-09-29T14:56:14Z</dc:date>
    </item>
  </channel>
</rss>

