Skip to content

Commit 5ca720d

Browse files
test fix
Adding an internal version of GetPositionInterpolator and GetRotationInterpolator when DEBUG_LINEARBUFFER is not defined for testing purposes.
1 parent d56c661 commit 5ca720d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Components/NetworkTransform.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4035,6 +4035,16 @@ public BufferedLinearInterpolatorQuaternion GetRotationInterpolator()
40354035
{
40364036
return m_RotationInterpolator;
40374037
}
4038+
#else
4039+
internal BufferedLinearInterpolatorVector3 GetPositionInterpolator()
4040+
{
4041+
return m_PositionInterpolator;
4042+
}
4043+
4044+
internal BufferedLinearInterpolatorQuaternion GetRotationInterpolator()
4045+
{
4046+
return m_RotationInterpolator;
4047+
}
40384048
#endif
40394049
public int GetPositionBufferCount()
40404050
{

0 commit comments

Comments
 (0)