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 }
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(); }
void GetPixelPerfectPlugin() { _pixelPerfectPlugin = ProCamera2D.GetComponent <ProCamera2DPixelPerfect>(); }
void GetPixelPerfectPlugin() { _pixelPerfectPlugin = ProCamera2D.GetComponent<ProCamera2DPixelPerfect>(); }