Is it possible to have a string converted to Int Point Structure (Blueprint/UMG)?
So I have a drop-down menu with UMG, the drop-down is for the resolution. I want the selected resolution to change the screen resolution. But when I try to connect them it says "string is not compatible with Int Point Structure".
asked Mar 01 '18 at 05:23 PM in Blueprint Scripting
Hello. Because structs contains more variable (this is why called structure) you need to do this manually.
You can use make "struct" like in this example:
Its only example i know it is light color struct (picture taken from unreal docs), but simiral should be available with resolution..
After you add make struct node you can configure the resolution.. Im suggesting to use "Select Node" after that! Select Node Doc: https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/Select/
With select node you can define different options based on your string and you can predefine values to this string.. working like an branch/if node.. if your string is "AAAA" X resolution = 1024 Y resolution = 1024 and so on.
Here is some great tutorial about select node: https://www.youtube.com/watch?v=lcN-hRux4cU
I hope this helps, if not tell me and i try to give proper example later ;)
answered Mar 02 '18 at 07:12 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here