コード例 #1
0
    void Start()
    {
        scaler = GetComponent <UICanvasScale>();

        startingY = scaler.rect.y;

        instance = this;
    }
コード例 #2
0
        // Use this for initialization

        void Start()
        {
            scaler     = GetComponent <UICanvasScale>();
            fullHeight = scaler.rect.height;
        }