Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Resolved NetworkVariable<FixedString32Bytes> : Type Not Renderable Bug?

Discussion in 'Netcode for GameObjects' started by wired2work, Oct 25, 2023.

  1. wired2work

    wired2work

    Joined:
    Dec 11, 2022
    Posts:
    2
    I saw this issue in a post a few months ago and it says that it is fixed. I am currently using NGO 1.6, recently upgraded to it due to another issue I was having, and that issue is fixed and now I am having this issue:
    upload_2023-10-24_21-36-40.png

    using System.Collections;
    using System.Collections.Generic;
    using Unity.Collections;
    using Unity.Netcode;
    using UnityEngine;
    public class NGOTest : NetworkBehaviour
    {
    public NetworkVariable<FixedString32Bytes> Player = new();
    }

    The code above is attached to a prefab, if you remove the NetworkVariable or comment it out, the editor will render the script fine.. It seems to only be when using FixedString32Bytes, other types I have tried work fine, int, bool, etc.

    Packages:
    Editor 2022.3.11F1
    NetCode GameObjects 1.6

    Hope this helps, any suggestions?

    TW
     
  2. frankluong_unity

    frankluong_unity

    Unity Technologies

    Joined:
    Feb 25, 2022
    Posts:
    2
    Hi @wired2work,

    I wanted to update you on the issue you reported above. We would like to assure you that our team has thoroughly investigated the matter, and we have identified the root cause of the issue.

    I am pleased to inform you that we have already developed a fix for it. The fix is currently scheduled to be included in our upcoming release com.unity.netcode.gameobjects@1.8.0, which is planned to be released shortly.

    Best regards,
    Frank Luong
    Software Engineer, Quality
     
  3. wired2work

    wired2work

    Joined:
    Dec 11, 2022
    Posts:
    2
    Thanks, for the response, I will look forward to the update.

    wired2work