Hide SidePanelPlugin when in Live Mode

How can I Hide SidePanelPlugin component when in Live Mode?

Yes. I assume that you want to show it in Playback mode but hide it in Live mode.

Your SidePanelPlugin will include a SidePanelPlaceDefinitions.

If using the template it will look like this -

public override List<SidePanelPlaceDefinition> SidePanelPlaceDefinitions
{
	get
	{
		return new List<SidePanelPlaceDefinition>() { 
			new SidePanelPlaceDefinition() { 
				WorkSpaceId = VideoOS.Platform.ClientControl.LiveBuildInWorkSpaceId, 
				WorkSpaceStates = new List<WorkSpaceState>() { VideoOS.Platform.WorkSpaceState.Normal }
			} 
		};
	}
}

This will show in Live but not in Playback and this will show in normal state not in setup.

This example from the Chat sample will show up always -

public override List<SidePanelPlaceDefinition> SidePanelPlaceDefinitions
{
    get
    {
        return new List<SidePanelPlaceDefinition>() { 
            new SidePanelPlaceDefinition() { 
                WorkSpaceId = ClientControl.LiveBuildInWorkSpaceId, 
                WorkSpaceStates = new List<WorkSpaceState>() { WorkSpaceState.Normal, WorkSpaceState.Setup }
            },
            new SidePanelPlaceDefinition() { 
                WorkSpaceId = ClientControl.PlaybackBuildInWorkSpaceId, 
                WorkSpaceStates = new List<WorkSpaceState>() { WorkSpaceState.Normal, WorkSpaceState.Setup }
            } 
        };
    }
}

Ref. https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_side_panel_plugin.html&tree=tree_search.html?search=sidepanelplacedefinitions