Announcement

Collapse
No announcement yet.

Size in bytes of TSubclassOf when replicating

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

    Size in bytes of TSubclassOf when replicating

    As the title suggest, I'm very curious how many bytes are sent when a TSubclassOf is replicated across the network? I tried searching but could not find an answer for this.

    Thank you in advance

    #2
    Class replication is very cheap as it is replicated by the package map id.

    Comment


      #3
      Originally posted by joeGraf View Post
      Class replication is very cheap as it is replicated by the package map id.
      Thanks, while we are on the subject, is there a way to know the size of structs that are getting replicated( FHitResult for example )

      Comment


        #4
        You can always use sizeof(Struct) to get the maximum that would be sent, but packing should make it smaller. Be careful with replicating structs, as the data can be quite large.

        Comment


          #5
          Ok, thank you for the help!

          Comment

          Working...
          X