Skip to content

client can‘t get OwnerId,ClientId,and GetAddress() #10

@busiyg

Description

@busiyg

public class PlayerNetworkHandler : NetworkBehaviour
{
public override void OnStartClient()
{

    if (base.IsOwner)
    {
        Debug.Log("OwnerId:" + base.OwnerId);
        Debug.Log("ClientId:" + LocalConnection.ClientId);
        Debug.Log("GetAddress:" + LocalConnection.GetAddress());
    }
    base.OnStartClient();
}

}

server side can get the stuff
image
but client side can’t
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions