Skip to content

Commit 492c6a9

Browse files
Change C# to Unity based log
1 parent f806b64 commit 492c6a9

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)