Search Unity

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:
    316
    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.