public static bool IsSpecialEffectLayers(int layer) { string text = LayerSystem.LayerToName(layer); return(text.Equals("FX") || text.Equals("FX_Distortion")); }