예제 #1
0
        public static CollabPublishDialog ShowCollabWindow(string changelist)
        {
            CollabPublishDialog collabPublishDialog = ScriptableObject.CreateInstance <CollabPublishDialog>();

            collabPublishDialog.Changelist = changelist;
            Rect position = new Rect(100f, 100f, 600f, 225f);

            collabPublishDialog.minSize  = new Vector2(position.width, position.height);
            collabPublishDialog.maxSize  = new Vector2(position.width, position.height);
            collabPublishDialog.position = position;
            collabPublishDialog.ShowModal();
            collabPublishDialog.m_Parent.window.m_DontSaveToLayout = true;
            return(collabPublishDialog);
        }
예제 #2
0
        public static CollabPublishDialog ShowCollabWindow(string changelist)
        {
            CollabPublishDialog dialog = ScriptableObject.CreateInstance <CollabPublishDialog>();

            dialog.Changelist = changelist;

            var rect = new Rect(100, 100, 600, 225);

            dialog.minSize  = new Vector2(rect.width, rect.height);
            dialog.maxSize  = new Vector2(rect.width, rect.height);
            dialog.position = rect;
            dialog.ShowModal();

            dialog.m_Parent.window.m_DontSaveToLayout = true;

            return(dialog);
        }