Removed Editor only compilation condition that was not needed.
{
public RenderPipelineAsset renderPipelineAsset;
#if UNITY_EDITOR
void OnEnable()
GraphicsSettings.renderPipelineAsset = renderPipelineAsset;
}
#endif