private static bool ComponentHasImageEffectAttribute(Component c) { if (c == null) { return false; } return Attribute.IsDefined(c.GetType(), typeof(ImageEffectAllowedInSceneView)); }