Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved Network Variable : Type not renderable

Discussion in 'Netcode for GameObjects' started by Satanislas, Feb 16, 2023.

  1. Satanislas

    Satanislas

    Joined:
    Dec 23, 2022
    Posts:
    2
    Hi everyone,
    I was wondering why my variables won't show up in the inspector, but sometimes when I manipulate them in my scripts, they appear to be serializable. The picture below show how unity is doing most of the times, image_2023-02-16_101652718.png


    but when i touch them, they appear like that for as long as i don't switch what object i'm inspecting.
    Capture d'écran_20230216_101336.png


    Any clue ?
     
  2. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    302
    Hey @Satanislas , are you using a custom inspector?
     
  3. Satanislas

    Satanislas

    Joined:
    Dec 23, 2022
    Posts:
    2
    Not at all, it's my first game on Unity
     
  4. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    302
    Can you post your inhibitor script, please?
     
  5. wpyle

    wpyle

    Joined:
    Nov 2, 2015
    Posts:
    2
    Screenshot 2023-03-07 231847.png Hi, the example project "2D Space Shooter" provided in the bite-sized samples repo has the same problem. The "Type not renderable" issue can be seen by looking at the "Ship" prefab.

    The issue appears to resolve itself after making any change to the Ship Control script.
     
    Last edited: Mar 8, 2023
  6. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    302
    Thanks for the info! I'll look into this issue myself, will keep you posted :D
     
    wpyle likes this.
  7. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    302
    @wpyle I submitted a fix, now we only have to wait for its approval :D
     
    wpyle likes this.
  8. RikuTheFuffs-U

    RikuTheFuffs-U

    Unity Technologies

    Joined:
    Feb 20, 2020
    Posts:
    302
    @wpyle @Satanislas quick update: the fix was approved and will be available in a future version of NGO. Thanks for flagging it :D
     
    wpyle likes this.
  9. wpyle

    wpyle

    Joined:
    Nov 2, 2015
    Posts:
    2
    Thanks for the resolution!
     
    RikuTheFuffs-U likes this.