We have made our custom version of the TextBlock that inherits and builds upon the native TextBlock. If I try to replace a native TextBlock from the Replace Menu, it would be natural that our custom TextBlock would be in the list. But it is not, and I don’t understand why. How can I ensure that I can easily replace any Text component with our custom one? It should be a safe swap.
Steps to Reproduce
Hi Peter,
We’re currently only populating that Replace With menu with widgets that are UPanelWidget-derived and can host multiple children. This guarantees a safe replacement which can host all potential children in the hierarchy, since otherwise we’d need to traverse the tree and determine how many slots we need to support before offering replacement widgets. That said, we’ll also allow you to replace the selected widget in the hierarchy with the selected widget class in the palette, so if you first select your derived text block in the pallete window, you should be able to do the replacement regardless of the replacing widget class type.
Best,
Cody