fix(Extensions): Added SetPositionAndRotation (#3887)

This commit is contained in:
MrGadget 2024-08-10 14:02:29 -04:00 committed by GitHub
parent dfd69f79dd
commit e8ebfa150b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.