Search Unity

IsOwner is Always showing false for the client

Discussion in 'Netcode for GameObjects' started by chanddu, Dec 17, 2022.

  1. chanddu

    chanddu

    Joined:
    Jun 13, 2016
    Posts:
    7
    Hi Team,
    We were testing the Netcode functionalities for our Multiplayer feature,on Network Spawn we were debugging the Isowner for the client and it is always showing "False" and it is showing Isownedbyserver as true,we were pretty new to this, so any help deeply appreciated.
    Thanks & Regards,
    Chandu.
     
  2. cerestorm

    cerestorm

    Joined:
    Apr 16, 2020
    Posts:
    660
    It sounds like you're calling Spawn() rather than SpawnWithOwnership(clientId).
     
    chanddu likes this.
  3. chanddu

    chanddu

    Joined:
    Jun 13, 2016
    Posts:
    7
    Hi cerestorm, Thanks for your quick response, I haven't changed the default spawning which we were using, if so lemme try with this SpawnWithOwnership(clientId).

    Note: Tested works now
    Thanks & Regards,
    Chandu.
     
    Last edited: Dec 17, 2022