diff --git a/com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs b/com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs index 2e4538b93e..baed948abe 100644 --- a/com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs +++ b/com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs @@ -171,9 +171,10 @@ static void UpdateActionArray(ActionSegment sourceActionBuffer, ActionSegm } else { - Debug.Assert(sourceActionBuffer.Length == destination.Length, - $"sourceActionBuffer:{sourceActionBuffer.Length} is a different" + - $" size than destination: {destination.Length}."); + Debug.AssertFormat(sourceActionBuffer.Length == destination.Length, + "sourceActionBuffer: {0} is a different size than destination: {1}.", + sourceActionBuffer.Length, + destination.Length); Array.Copy(sourceActionBuffer.Array, sourceActionBuffer.Offset,