CinemachineUniversalPixelPerfect.cs 910 B

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