PhotonView.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
    public override string ToString()
    {
        return string.Format("View ({3}){0} on {1} {2}", this.viewID, (this.gameObject != null) ? this.gameObject.name : "GO==null", (this.isSceneView) ? "(scene)" : string.Empty, this.prefix);
    }
}

Usage Example

    public void OnOwnershipRequest(PhotonView targetView, Player requestingPlayer)
    {
        targetView.TransferOwnership(requestingPlayer);

#if UNITY_EDITOR
        Debug.Log("Transfer owner of " + targetView.ToString() + " to " + requestingPlayer.ActorNumber);
#endif
    }
All Usage Examples Of PhotonView::ToString