SetLevelPrefix
How do I use Set Level Prefix
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
2825 | public void SetLevelPrefix(short prefix) | 1 |
2610 | public static void SetLevelPrefix(short prefix) | 2 |
File name: NetworkingPeer.cs
Copy
2825 public void SetLevelPrefix(short prefix)
2826 {
2827 this.currentLevelPrefix = prefix;
2828 // TODO: should we really change the prefix for existing PVs?! better keep it!
2829 //foreach (PhotonView view in this.photonViewList.Values)
2830 //{
2831 // view.prefix = prefix;
2832 //}
2833 }
File name: PhotonNetwork.cs
Copy
2610 public static void SetLevelPrefix(short prefix)
2611 {
2612 if (!VerifyCanUseNetwork())
2613 {
2614 return;
2615 }
2616
2617 networkingPeer.SetLevelPrefix(prefix);
2618 }
SetLevelPrefix 123 lượt xem
Gõ tìm kiếm nhanh...