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
/// This is synchronized by the authority. During runtime, this should only be changed by the
1501
-
/// authoritative side. Non-authoritative instances will be overridden by the next
1502
-
/// authoritative state update.<br />
1502
+
/// authoritative side. Non-authoritative instances will be overridden by the currently applied authoritative state update.<br />
1503
1503
/// Note:<br />
1504
-
/// When <see cref="SwitchTransformSpaceWhenParented"/> is enabled, this field will be automatically adjusted.
1505
-
/// Adjusting this field during runtime and when <see cref="SwitchTransformSpaceWhenParented"/> isn't enabled.
1504
+
/// When <see cref="SwitchTransformSpaceWhenParented"/> is enabled, this field will be automatically adjusted and will no longer be visible in the inspector view.
1505
+
/// It is not recommended to adjust this field during runtime when <see cref="SwitchTransformSpaceWhenParented"/> is enabled.
1506
1506
/// </remarks>
1507
1507
[Tooltip("Sets whether this transform should sync in local space or in world space")]
1508
1508
publicboolInLocalSpace=false;
1509
1509
1510
1510
/// <summary>
1511
-
/// When enabled, the NetworkTransform will automatically handle transitioning into the respective transform space when its <see cref="NetworkObject"/> parent changes.<br />
1512
-
/// When parented: Automatically transitions into local space and coverts any existing pending interpolated states to local space on non-authority instances.<br />
1513
-
/// When deparented: Automatically transitions into world space and converts any existing pending interpolated states to world space on non-authority instances.<br />
1514
-
/// Set on the root <see cref="NetworkTransform"/> instance (nested <see cref="NetworkTransform"/> components should be pre-set in-editor to local space. <br />
1511
+
/// When enabled: The NetworkTransform will automatically handle transitioning into the respective transform space when its <see cref="NetworkObject"/> parent changes.<br />
1512
+
/// When parented: Automatically transitions into local space and coverts any pending interpolation states to the relative local space on non-authority instances.<br />
1513
+
/// When de-parented: Automatically transitions into world space and coverts any pending interpolation states to the relative local space on non-authority instances.<br />
1515
1514
/// </summary>
1516
1515
/// <remarks>
1517
1516
/// Only works with <see cref="NetworkTransform"/> components that are not paired with a <see cref="NetworkRigidbody"/> or <see cref="NetworkRigidbody2D"/> component that is configured to use the rigid body for motion.<br />
1518
1517
/// <see cref="TickSyncChildren"/> will automatically be set when this is enabled.
1519
-
/// This field doesn't auto-synchronize with non-authority clients if changed on the authority instance during runtime (so you should apply this setting in-Editor).
1520
-
/// Read the NetworkTransform documentation for more information and to avoid improper use.
1518
+
/// This field is auto-synchronize with non-authority clients if changed by the authority instance.
1521
1519
/// </remarks>
1522
1520
[Tooltip("When enabled, NetworkTransform controls world or local space settings while also providing smooth parenting transitions."+
1523
1521
"When disabled, world or local space settings have to be adjusted by script or in the inspector view.")]
/// Directly sets a state on the authoritative transform.
3987
-
/// Owner clients can directly set the state on a server authoritative transform
3988
-
/// This will override any changes made previously to the transform
3989
-
/// This isn't resistant to network jitter. Server side changes due to this method won't be interpolated.
3990
-
/// The parameters are broken up into pos / rot / scale on purpose so that the caller can perturb
3991
-
/// just the desired one(s).
3992
-
/// Using this method during the spawn sequence isn't recommended. Refer to the NetworkTransform documentation for more information on the recommended usage.
3983
+
/// Directly sets a state on the authoritative transform. <br />
3984
+
/// Owner clients can directly set the state on a server authoritative transform. <br />
3985
+
/// This will override any changes made previously to the transform. <br />
3986
+
/// This isn't resistant to network jitter. Authority side changes due to this method won't be interpolated when <paramref name="teleportDisabled"/> is false. <br />
3987
+
/// Using this method during the spawn sequence isn't recommended. Refer to the NetworkTransform documentation for more information on the recommended usage. <br />
3993
3988
/// </summary>
3994
3989
/// <param name="posIn">new position to move to. Can be null</param>
3995
3990
/// <param name="rotIn">new rotation to rotate to. Can be null</param>
3996
3991
/// <param name="scaleIn">new scale to scale to. Can be null</param>
3997
3992
/// <param name="teleportDisabled">When true (the default) the <see cref="NetworkObject"/> will not be teleported and, if enabled, will interpolate. When false the <see cref="NetworkObject"/> will teleport/apply the parameters provided immediately.</param>
3998
-
/// <exception cref="Exception">Thrown when the function is called on non-spawned object or, when it's called without proper authority</exception>
/// Teleport an already spawned object to the given values without interpolating.
4128
-
/// Using this method during the spawn sequence isn't recommended. Refer to the NetworkTransform documentation for more information on the recommended usage.
4121
+
/// Teleport an already spawned object to the given values without interpolating.<br />
4122
+
/// Using this method during the spawn sequence isn't recommended since the authority already teleports to the currently set transform values.<br />
4129
4123
/// </summary>
4130
4124
/// <remarks>
4131
4125
/// This is intended to be used on already spawned objects, for setting the position of a dynamically spawned object just apply the transform values prior to spawning.<br />
4132
-
/// With player objects, override the <see cref="OnNetworkSpawn"/> method and have the authority make adjustments to the transform prior to invoking base.OnNetworkSpawn.
4126
+
/// With player objects, override the <see cref="OnNetworkSpawn"/> method and have the authority make adjustments to the transform prior to invoking base.OnNetworkSpawn.<br />
4127
+
/// When using an owner authority motion model and a client-server network topology, it is recommended to stick with the motion authority (as much as possible) when invoking this method. <br />
4133
4128
/// </remarks>
4134
4129
/// <param name="newPosition">new position to move to.</param>
4135
4130
/// <param name="newRotation">new rotation to rotate to.</param>
0 commit comments