Announcement

Collapse
No announcement yet.

Type Name Prefix Convention

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Type Name Prefix Convention

    I'm curious about the type name prefix convention. Here's what it looks like to me:
    E - Enums
    T - Templates
    U - UObjectBase and subclasses (except for AActor and subclasses)
    A - AActor and subclasses
    F - ?

    What the heck does F stand for?

    #2
    Structs are prefixed with F, e.g. FString, FHitResult.
    The F doesn't really stand for anything. The first struct in the codebase was FVector, which was prefixed with F because it was a vector of floats, and the trend caught on.

    There's also an S prefix for Slate widgets (e.g. SListView, SInGameScoreboardWidget)

    Comment


      #3
      Ah, got it. Thanks. I figured it was nothing more than the "other" category. At first I thought it was for floats, but then I saw FIntVector.

      Comment


        #4
        There is also I, used for Interfaces.

        Comment


          #5
          Assuming all this is true, you could intemperate F to be "data structure", that is, just a grouping of related objects/data/flags/references.

          Comment


            #6
            I think F is used for various things...
            And then there's G which seems to stand for Global.

            Comment

            Working...
            X