Cartographic polygon disable/enable at runtime

Hi, I was wondering if it possible to toggle the CesiumPolygonRasterOverlay during runtime?
This would be useful for showing before/after of a project area with the cutout from the the cartographic polygon being disabled when the user clicks a button.

Is it possible to do this in blueprints in UE?

Thanks!

Hi @Art_C, welcome to the community!

You can hide a raster overlay by calling Deactivate on it, and re-show it by calling Activate.

Hi, Art_C,
Here is an example of toggling the tint of Cartographic Polygon, and the clipping is the same.
1.In outliner, attach the button,see the BP_Label_DJY, to the Cartographic Polygon it wants to control, making the polygon its “Attach Parent Actor”.


2.Here is the blueprint.

3. Here is the result.Press the button" BP_Label_DJY", and the Tint Blue effect appears without affecting the Tint Red effect.Press the button "BP_Label_DJY"again, and the Tint Blue effect disappears without affecting the Tint Red effect.

1 Like

awesome, that worked, thank you!

thank you for the suggestion!