void GetPixelPerfectPlugin()
        {
            _pixelPerfectPlugin = ProCamera2D.GetComponent <ProCamera2DPixelPerfect>();

#if UNITY_EDITOR
            if (_pixelPerfectPlugin == null)
            {
                Debug.LogWarning("PixelPerfect extension not present. Please add it to the ProCamera2D core.");
            }
#endif
        }
Exemple #2
0
        protected override void Start()
        {
            base.Start();

            _pixelPerfectPlugin = ProCamera2D.GetComponent <ProCamera2DPixelPerfect>();

            var spriteRenderer = GetComponent <SpriteRenderer>();

            if (spriteRenderer != null)
            {
                _sprite = spriteRenderer.sprite;
            }

            #if PC2D_TK2D_SUPPORT
            if (_sprite == null)
            {
                _spriteTk2d = GetComponent <tk2dSprite>();
            }
            #endif

            SetAsPixelPerfect();
        }
Exemple #3
0
 void GetPixelPerfectPlugin()
 {
     _pixelPerfectPlugin = ProCamera2D.GetComponent <ProCamera2DPixelPerfect>();
 }
 void GetPixelPerfectPlugin()
 {
     _pixelPerfectPlugin = ProCamera2D.GetComponent<ProCamera2DPixelPerfect>();
 }