You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="parent">The new parent for this NetworkObject transform will be the child of.</param>
2159
2159
/// <param name="worldPositionStays">If true, the parent-relative position, scale and rotation are modified such that the object keeps the same world space position, rotation and scale as before.</param>
2160
-
/// <returns>Whether or not reparenting was successful.</returns>
2160
+
/// <returns>Whether or not re-parenting was successful.</returns>
/// <param name="parent">The new parent for this NetworkObject transform will be the child of.</param>
2179
2179
/// <param name="worldPositionStays">If true, the parent-relative position, scale and rotation are modified such that the object keeps the same world space position, rotation and scale as before.</param>
2180
-
/// <returns>Whether or not reparenting was successful.</returns>
2180
+
/// <returns>Whether or not re-parenting was successful.</returns>
@@ -2218,7 +2218,7 @@ public bool TryRemoveParent(bool worldPositionStays = true)
2218
2218
/// </summary>
2219
2219
/// <param name="parent">The new parent for this NetworkObject transform will be the child of.</param>
2220
2220
/// <param name="worldPositionStays">If true, the parent-relative position, scale and rotation are modified such that the object keeps the same world space position, rotation and scale as before.</param>
2221
-
/// <returns>Whether or not reparenting was successful.</returns>
2221
+
/// <returns>Whether or not re-parenting was successful.</returns>
// If the cached parent has not already been set and we are in distributed authority mode, then log an exception and exit early as a non-authority instance
2310
+
// If the cached parent has not already been set, and we are in distributed authority mode, then log an exception and exit early as a non-authority instance
2312
2311
// is trying to set the parent.
2313
2312
if(distributedAuthority)
2314
2313
{
2315
2314
transform.parent=m_CachedParent;
2316
-
NetworkLog.LogError($"[Not Owner] Only the owner-authority of child {gameObject.name}'s {nameof(NetworkObject)} component can reparent it!");
2315
+
NetworkLog.LogError($"[Not Owner] Only the owner-authority of child {gameObject.name}'s {nameof(NetworkObject)} component can re-parent it!");
2317
2316
}
2318
2317
else
2319
2318
{
2320
2319
transform.parent=m_CachedParent;
2321
-
Debug.LogException(newNotServerException($"Only the server can reparent{nameof(NetworkObject)}s"));
2320
+
Debug.LogException(newNotServerException($"Only the server can re-parent{nameof(NetworkObject)}s"));
0 commit comments