Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved Does Netcode Support Unsafe Fixed Fields In Struct Ghost Components?

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by Kmsxkuse, Dec 8, 2022.

  1. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    306
    Title question.
     
  2. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    334
    Hey kmsxkuse!
    Currently: No. You'd need to unroll the unsafe fixed array into multiple fields.
    Can you LMK how inconvenient this is, please? I.e. What fixed array sizes are you using?
     
    Kmsxkuse likes this.
  3. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    306
    Not that much of an annoyance. I cant use fixed fields in a blob asset anyways so I just copy pasted the field a few times then got a pointer to the first value.

    Same thing, less clean structs but otherwise not a problem.
     
    NikiWalker likes this.