To show an initially hidden text object called textDebug only in the editor preview
if (IsPreview()){ textDebug.Show();}