diff --git a/Assets/RGLUnityPlugin/Scripts/LowLevelWrappers/RGLNativeAPI.cs b/Assets/RGLUnityPlugin/Scripts/LowLevelWrappers/RGLNativeAPI.cs index 197a4a282..d0a07863b 100644 --- a/Assets/RGLUnityPlugin/Scripts/LowLevelWrappers/RGLNativeAPI.cs +++ b/Assets/RGLUnityPlugin/Scripts/LowLevelWrappers/RGLNativeAPI.cs @@ -166,8 +166,14 @@ public static extern int rgl_node_points_udp_publish( static RGLNativeAPI() { string ros2SourcedCodename = Environment.GetEnvironmentVariable("ROS_DISTRO"); - string ros2BuildType = string.IsNullOrEmpty(ros2SourcedCodename) ? "standalone" : "sourced"; - Debug.Log($"RGL uses {ros2BuildType} ROS version."); + bool isRos2Sourced = !string.IsNullOrEmpty(ros2SourcedCodename); + if (isRos2Sourced) + { + Debug.LogError( + "You should not source ROS2 in 'RobotecGPULidar' standalone build. " + + "RGLUnityPlugin might not work correctly." + ); + } try {