PhotonView.ToString C# (CSharp) 메소드

ToString() 공개 메소드

public ToString ( ) : string
리턴 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