mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
fix(Extensions): Added SetPositionAndRotation (#3887)
This commit is contained in:
parent
dfd69f79dd
commit
e8ebfa150b
@ -108,6 +108,12 @@ public static void GetPositionAndRotation(this Transform transform, out Vector3
|
||||
position = transform.position;
|
||||
rotation = transform.rotation;
|
||||
}
|
||||
|
||||
public static void SetPositionAndRotation(this Transform transform, Vector3 position, Quaternion rotation)
|
||||
{
|
||||
transform.position = position;
|
||||
transform.rotation = rotation;
|
||||
}
|
||||
#endif
|
||||
|
||||
// IPEndPoint address only to pretty string.
|
||||
|
Loading…
Reference in New Issue
Block a user