Exemple #1
0
    void SetupCamera()
    {
        camera.backgroundColor    = m_BackgroundColor.ToRGBA();
        camera.transform.position = new Vector3(m_Extent.center.x, m_Extent.center.y, camera.transform.position.z);
        var size = m_Extent.height /* / 2f*/;

        camera.orthographicSize = size;
    }