CinemachineUniversalPixelPerfect.cs 817 B

1234567891011121314151617
  1. namespace UnityEngine.Experimental.Rendering.Universal
  2. {
  3. /// <summary>
  4. /// (Deprecated) An add-on module for Cinemachine Virtual Camera that tweaks the orthographic size
  5. /// of the virtual camera. It detects the presence of the Pixel Perfect Camera component and use the
  6. /// settings from that Pixel Perfect Camera to correct the orthographic size so that pixel art
  7. /// sprites would appear pixel perfect when the virtual camera becomes live.
  8. /// </summary>
  9. [AddComponentMenu("")] // Hide in menu
  10. public class CinemachineUniversalPixelPerfect : MonoBehaviour
  11. {
  12. void OnEnable()
  13. {
  14. Debug.LogError("CinemachineUniversalPixelPerfect is now deprecated and doesn't function properly. Instead, use the one from Cinemachine v2.4.0 or newer.");
  15. }
  16. }
  17. }