3
\$\begingroup\$

Sorry, maybe a noob question, I did a quick google search and couldn't find what I was looking for. I have two related questions about FString.

  1. Does regular C++ Have this, or is this an Unreal term. (I know python has a variable called FString).

  2. What makes FString different from the String variable?

thnx. It's not very necessary for development, but I'm just curious why Unreal uses FString instead of String.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ I also recommend you to discover this link . \$\endgroup\$ Dec 23, 2020 at 21:11

1 Answer 1

5
\$\begingroup\$

FString (and all types that are prefixed with U,F,T etc.) are custom Unreal Types.
They have special behaviour and work hand-in-hand with Unreal's Typesystem and Garbage Collection.

Use string and other raw types if you want to program plain C++ Code. Use the Unreal Types if you want to interface with your Game.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ thanks, that clears it up. =) \$\endgroup\$
    – Millard
    Dec 19, 2020 at 20:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .