public static UnityConnectConsentView ShowUnityConnectConsentView(string URL) { UnityConnectConsentView unityConnectConsentView = ScriptableObject.CreateInstance <UnityConnectConsentView>(); Rect position = new Rect(100f, 100f, 800f, 605f); unityConnectConsentView.titleContent = EditorGUIUtility.TrTextContent("Unity Application Consent Window", null, null); unityConnectConsentView.minSize = new Vector2(position.width, position.height); unityConnectConsentView.maxSize = new Vector2(position.width, position.height); unityConnectConsentView.position = position; unityConnectConsentView.m_InitialOpenURL = URL; unityConnectConsentView.ShowModal(); unityConnectConsentView.m_Parent.window.m_DontSaveToLayout = true; return(unityConnectConsentView); }
public static UnityConnectConsentView ShowUnityConnectConsentView(String URL) { UnityConnectConsentView consentView = ScriptableObject.CreateInstance <UnityConnectConsentView>(); var rect = new Rect(100, 100, 800, 605); consentView.titleContent = EditorGUIUtility.TrTextContent("Unity Application Consent Window"); consentView.minSize = new Vector2(rect.width, rect.height); consentView.maxSize = new Vector2(rect.width, rect.height); consentView.position = rect; consentView.m_InitialOpenURL = URL; consentView.ShowModal(); consentView.m_Parent.window.m_DontSaveToLayout = true; return(consentView); }