File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
MLAPI/NetworkingManagerComponents/Core Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,11 @@ internal static ulong GetPrefabHash(string prefabName)
5555 return 0 ;
5656 }
5757
58+ /// <summary>
59+ /// Gets the prefab index of a given prefab hash
60+ /// </summary>
61+ /// <param name="hash">The hash of the prefab</param>
62+ /// <returns>The index of the prefab</returns>
5863 public static int GetNetworkedPrefabIndexOfHash ( ulong hash )
5964 {
6065 for ( int i = 0 ; i < NetworkingManager . singleton . NetworkConfig . NetworkedPrefabs . Count ; i ++ )
@@ -66,6 +71,11 @@ public static int GetNetworkedPrefabIndexOfHash(ulong hash)
6671 return - 1 ;
6772 }
6873
74+ /// <summary>
75+ /// Gets the prefab index of a given prefab name
76+ /// </summary>
77+ /// <param name="name">The name of the prefab</param>
78+ /// <returns>The index of the prefab</returns>
6979 public static int GetNetworkedPrefabIndexOfName ( string name )
7080 {
7181 for ( int i = 0 ; i < NetworkingManager . singleton . NetworkConfig . NetworkedPrefabs . Count ; i ++ )
You can’t perform that action at this time.
0 commit comments