Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

    frankluong

    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