Search Unity

How to access this component?

Discussion in 'Scripting' started by Garien, Jan 19, 2019.

  1. Garien

    Garien

    Joined:
    Oct 11, 2018
    Posts:
    36
    Hi!
    I'm having issues with setting up a proper pixel perfect camera, even using Unity's pixel perfect package.

    One solution I found to fix my issues would be to change the X and Y values in the Pixel Perfect Camera (Script) at void Start (), by doing some math according to the player's screen resolution. However, I have no idea how to access that component via another script and to do so I need to access it.

    I couldn't find anything in google.
    Can someone help? This is the componentI want to access: Pixel Perfect Camera (Script)

    upload_2019-1-19_13-52-14.png
     
  2. Garien

    Garien

    Joined:
    Oct 11, 2018
    Posts:
    36
    Found out...
    I have to do 'usingUnityEngine.U2D'
    Thanks !