Exemplo n.º 1
0
        public void HighlightBuildingAtLocation(LatLongAltitude location, Material material, HighlightReceivedCallback callback)
        {
            int highlightRequestId = m_nextHighlightRequestId;
            HighlightRequest request;

            request.material = material;
            request.callback = callback;
            HighlightRequests.Add(highlightRequestId, request);
            NativeHighlightBuildingAtLocation(NativePluginRunner.API, location.GetLatitude(), location.GetLongitude(), location.GetAltitude(), OnHighlightReceived, highlightRequestId);
            m_nextHighlightRequestId += 1;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Highlights a building at a given location and returns the highlight geometry as a GameObject through the callback. This can only generate highlight geometry for buildings which have streamed in.
        /// </summary>
        /// <param name="location">The geographic point which intersects with the building to be highlighted.</param>
        /// <param name="material">The material to assign the highlight geometry.</param>
        /// <param name="callback">The callback where the highlight will be received.</param>
        public void HighlightBuildingAtLocation(LatLong location, Material material, HighlightReceivedCallback callback)
        {
            var latLongAlt = LatLongAltitude.FromDegrees(location.GetLatitude(), location.GetLongitude(), -1.0);

            HighlightBuildingAtLocation(latLongAlt, material, callback);
        }