I have added a couple of variables to a code class (FString and Float) and made them both Blueprint Read Only and Blueprint Read Write. When I created a blueprint based on my C++ class, I used the Get Class Defaults node, selected my code class from the dropdown, and my variables appeared.
If you select your code class (say MyActor if you are just using a basic actor class for testing), from the dropdown on the Get Class Defaults node, your variables that you have created in code should appear. If you set them to read only, you will not be able to alter the values by dragging off of the pin, as expected.
I can perform some additional tests using widget classes. Could you provide sample code that you are using so that I can ensure I am mirroring your setup in my tests?
Thank you for providing the code. Using the code that you’ve shown above, the same method that I mentioned above works to allow the defaults to appear. Create a variable that is a reference to your Widget_Chat C++ class, or select Widget_Chat from the Class dropdown on the Get Class Defaults node, and you will be able to see the variables that you created in your code.