how to print 2 arguemnts onto a single line (C#)

Hi Everyone!

I’m just getting started with C# in Unity, and I’m trying to consolidate a couple different pieces of information onto one line:

What I would like to write is this:

print ("transform.position.y = ", transform.position.y );

But I get this error:

No overload for method `print' takes `2' arguments

So instead, I break them up into two:

print ("transform.position.y = ");
print (transform.position.y);

This works, but if I could keep them on one line in the console, it would be much easier to read.

Thank you so much in advance - I deeply appreciate any help or advice you are able to lend me.

-kropcke

Try print ("Transofrm.position.y = " + transform.position.y);