Skip to content

Commit 746706d

Browse files
committed
Added NetworkedPrefabName tooltip
1 parent e82b619 commit 746706d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

MLAPI-Editor/NetworkedObjectEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public override void OnInspectorGUI()
3535
}
3636
EditorGUILayout.EndHorizontal();
3737
}
38-
else if(networkedObject.isSpawned)
38+
else if (networkedObject.isSpawned)
3939
{
4040
EditorGUILayout.LabelField("PrefabName: ", networkedObject.NetworkedPrefabName, EditorStyles.label);
4141
EditorGUILayout.LabelField("PrefabHash: ", networkedObject.NetworkedPrefabHash.ToString(), EditorStyles.label);

MLAPI/MonoBehaviours/Core/NetworkedObject.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ internal set
5353
/// <summary>
5454
/// The name of the NetworkedPrefab
5555
/// </summary>
56+
[Tooltip("The prefab name is the name that identifies this prefab. It has to not be the same as any other prefabs that are registered with the MLAPI and it has to be the same across projects if multiple projects are used.")]
5657
public string NetworkedPrefabName = string.Empty;
5758
/// <summary>
5859
/// The hash used to identify the NetworkedPrefab, a hash of the NetworkedPrefabName

0 commit comments

Comments
 (0)