Topic: Street view close button logic ?

Hello, after a moment I finished by understand how to close a streetview panorama in OLMaps with a button.

My concern is that the close button (prefab) is spawneds as child of a Canvas... which is deactivated ! I tried lot of things without success, if the prefab is already at the good place in a canvas, another clone is spawned.

Is there a way to force the button to spawn as child of a specific canvas ?

Please tell me how I can do, best regards.

Philippe

Re: Street view close button logic ?

Hello.

Just make your own button which will call OnlineMapsPanoConnector.Close method.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Street view close button logic ?

Alex Vertax wrote:

Hello.

Just make your own button which will call OnlineMapsPanoConnector.Close method.

Thanks for the answer, this is exactly what I do, but I need to know that the streetview panorama is opened to display the button, and I don't know how I can get this information.

In google map, when you open a streetview panorama, a small window appears in the corner of the screen with the date and some info about the author.

Is there a way to get these information in UPano ?

Best regards, Philippe

Re: Street view close button logic ?

How to track the opening of the panorama:
C# - OnlineMapsPanoConnector.OnLoaded.
Playmaker - Handle Panorama Global Events / On Pano Enabled.

How to get information:
C# - OnlineMapsPanoConnector.meta.
Playmaker - you don't have a way to do this.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Street view close button logic ?

Thanks Alex !