/// <summary> /// Triggered by the Maps SDK during the loading process. /// Notifies the SDK if the GameObject for regions needs to be created (or not) based on the /// value of the UI flag. /// </summary> void OnWillCreateRegion(WillCreateRegionArgs args) { args.Cancel = !ShowRegions; }
/// <summary> /// Handle <see cref="RegionEvents.WillCreate"/> event by specifying the region styles. /// </summary> /// <param name="args">Event arguments.</param> public void HandleWillCreateRegion(WillCreateRegionArgs args) { args.Style = GameObjectOptions.RegionStyle; }
/// <summary> /// Handle <see cref="RegionEvents.WillCreate"/> event by specifying the region styles. /// </summary> public void HandleWillCreateRegion(WillCreateRegionArgs arguments) { arguments.Style = _mapDefaultStyle.RegionStyle; }