Skip to content

Commit 282f8a3

Browse files
author
Adam Dąbrowski
committed
Merge branch 'fix/unity_logging' into 'master'
Change C# to Unity based log See merge request robotec.ai/tieriv/ros2-for-unity!2
2 parents f55a4b3 + 492c6a9 commit 282f8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ros2ForUnity/Scripts/ROS2ListenerExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void Update()
3939
{
4040
ros2Node = ros2Unity.CreateNode("ROS2UnityListenerNode");
4141
chatter_sub = ros2Node.CreateSubscription<std_msgs.msg.String>(
42-
"chatter", msg => Console.WriteLine("Unity listener heard: [" + msg.Data + "]"));
42+
"chatter", msg => Debug.Log("Unity listener heard: [" + msg.Data + "]"));
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)