Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question how to unregister unity ros service via ROSConnection

Discussion in 'Robotics' started by zhixuanDu, Sep 13, 2022.

  1. zhixuanDu

    zhixuanDu

    Unity Technologies

    Joined:
    May 31, 2022
    Posts:
    1
    I've created an unity service by following way

    Code (CSharp):
    1. ros = ROSConnection.GetOrCreateInstance();
    2.             ros.ImplementService<VehicleControlServiceRequest, VehicleControlServiceResponse>(unityServiceName, methodName);
    When i switch the scene, i don't know how to unregister the service to tell the client not make call any more.

    Thanks for any help!