#Player object issues

1 messages · Page 1 of 1 (latest)

wary adder
#

Start() is called before the objects are spawned on the network so owner is not set yet. Change to OnNetworkSpawn() if it's a network object.
The player camera shouldn't be set in the inspector either. There should be only one main camera in the scene for the local player.

sacred sky
#

I think I might have changed the spawning system.

wary adder
#

In the scene if there is more than one camera the last active camera becomes the main camera. If you have the camera as part of the player prefab then you will need to disable all the other cameras on the other players

sacred sky
#

There no other camera

#

Yeahh just the main Cam which is the Players Cam

#

Since I changed the first line (You mentioned) it's spawning right it's just not allowing me to move.

wary adder
sacred sky
#

Question I keep getting this error when loading into Start Client.
Would you know how to fix it if not I'll ask in the main channel?

0x00007fffdefb16fe (Unity) Stacktrace::GetStacktrace
0x00007fffdd51178a (Unity) DefaultBurstRuntimeLogCallback
0x00007fffdce14a5a (Unity) BurstCompilerService_CUSTOM_RuntimeLog
0x00007fffd630aea8 (028699a3c524dc8059ba5fb28419b76) Unity.Jobs.IJobExtensions.JobStruct`1<Unity.Networking.Transport.UDPNetworkInterface.ReceiveJob>.Execute(ref Unity.Networking.Transport.UDPNetworkInterface.ReceiveJob data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) -> void_0d64390541958b43604801c180219108 from UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at C:/Users/dm676/Necro Heist/Library/PackageCache/com.unity.burst/.Runtime/unknown/unknown:0)
0x00007fffd6308dcd (028699a3c524dc8059ba5fb28419b76) d405243e08c5a10bb107ab8ae84cf799
0x00007fffdd85b3d5 (Unity) ExecuteJob
0x00007fffdd85c4ed (Unity) ForwardJobToManaged
0x00007fffdd8586e9 (Unity) ujob_execute_job
0x00007fffdd857adf (Unity) lane_guts
0x00007fffdd85a724 (Unity) worker_thread_routine
0x00007fffdda50fad (Unity) Thread::RunThreadWrapper
0x00007ff87960e8d7 (KERNEL32) BaseThreadInitThunk
0x00007ff87b81bf6c (ntdll) RtlUserThreadStart```
sacred sky