- Home /
I fixed it by turning on all the cameras culling masks
My players are not able to see each other anymore in a network game how do I fix this ?
Everything was working fine and all players could join a game and see each other then I decided to work a little the camera to get less clipping and was in play mode editing my player prefab, when I decided i was going to try and save time and hit apply on my player. I had never been able to do this before and Unity gave me this massive error message saying that was impossible: InvalidOperationException: This cannot be used during play mode. UnityEditor.SceneManagement.EditorSceneManager.MarkSceneDirty (Scene scene) (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorSceneManagerBindings.gen.cs:156) UnityEditor.GameObjectInspector.DrawInspector (Rect contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:409) UnityEditor.GameObjectInspector.OnHeaderGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/GameObjectInspector.cs:134) UnityEditor.Editor.DrawHeader () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:355) UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1116) UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1030) UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:352) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) . When I stopped the Unity player and attempted to play again my player prefab was completely broken not displaying cameras or having scripts functioning. After 3h of reassembling my player and finally getting the players to join a game together they still do not see each other but can interact with one another. Has anyone had this issue before and what to do to get them to see and interact with each other again?
Follow this Question
Related Questions
How to set the player number in a network game? 1 Answer
Unity networking tutorial? 6 Answers
The magic key to networking? 0 Answers
UNET Bug with NetworkHash128 and Saving Prefabs 0 Answers
How stream unreliable data to only one server/client? 1 Answer