コード例 #1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        Viewer360.StereoToggle toggle;
        if (Toggle.name == "ToggleTopBottom")
        {
            toggle = Viewer360.StereoToggle.TopBottom;
        }

        else if (Toggle.name == "ToggleLeftRight")
        {
            toggle = Viewer360.StereoToggle.LeftRight;
        }

        else
        {
            toggle = Viewer360.StereoToggle.Mpo;
        }
        Viewer360.OnToggleChange(toggle);
    }
コード例 #2
0
    public void OnPointerClick(PointerEventData eventData)
    {
        bool upDown = (Toggle.name == "ToggleUpDown");

        Viewer360.OnToggleChange(upDown);
    }