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)
55
55
return 0 ;
56
56
}
57
57
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>
58
63
public static int GetNetworkedPrefabIndexOfHash ( ulong hash )
59
64
{
60
65
for ( int i = 0 ; i < NetworkingManager . singleton . NetworkConfig . NetworkedPrefabs . Count ; i ++ )
@@ -66,6 +71,11 @@ public static int GetNetworkedPrefabIndexOfHash(ulong hash)
66
71
return - 1 ;
67
72
}
68
73
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>
69
79
public static int GetNetworkedPrefabIndexOfName ( string name )
70
80
{
71
81
for ( int i = 0 ; i < NetworkingManager . singleton . NetworkConfig . NetworkedPrefabs . Count ; i ++ )
You can’t perform that action at this time.
0 commit comments