Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        camera = GetComponent <Camera>();
        cpv    = GetComponent <CameraPositioningValues>();

        //0 is in the middle, 0.67 is in the corner
        optimalInterestView = CrossCameraOffLimit * 0.5f;
    }
Exemplo n.º 2
0
    // Update is called once per frame
    public void OnSceneGUI()
    {
        //DrawDefaultInspector();
        UnityEditor.Handles.BeginGUI();
        if (trgt == null)
        {
            trgt = (CameraPositioningValues)target;
        }

        UnityEditor.Handles.color = Color.blue;

        UnityEditor.Handles.Label(trgt.PositionofInterestOpposite(), "Opposite");

        //Handles.BeginGUI(new Rect(0,0,100,100));
        //Handles.EndGUI();
    }