Search Unity

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

Bug Invalid cast exception in the editor

Discussion in 'Netcode for GameObjects' started by lavagoatGG, Oct 31, 2023.

  1. lavagoatGG

    lavagoatGG

    Joined:
    Apr 16, 2022
    Posts:
    226
    I just added another GameObject variable to my network behaviour script and now It doesn't show anything about that script in th editor and when I try to expand it I get 11

    InvalidCastException: Specified cast is not valid.
    Unity.Netcode.Editor.NetworkBehaviourEditor.RenderNetworkContainerValueTypeIEquatable[T] (System.Int32 index) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Editor/NetworkBehaviourEditor.cs:146)

    Errors.
    Netcode 1.6.0
     
  2. lavagoatGG

    lavagoatGG

    Joined:
    Apr 16, 2022
    Posts:
    226
    I entered and exited play mode and now it's fine