public static void Show() { #if UNITY_WEBGL && !UNITY_EDITOR if (!IsInitialized) { return; } WebGLFileUploadManager.Unity_FileUploadManager_Show(); #endif }
/// <summary> /// Shows the file upload UI. /// </summary> /// <returns><c>true</c>, if file upload UI was showd, <c>false</c> otherwise.</returns> /// <param name="isDropInput">If set to <c>true</c> is drop input.</param> /// <param name="isOverlay">If set to <c>true</c> is overlay.</param> /// <param name="x">The x coordinate.</param> /// <param name="y">The y coordinate.</param> /// <param name="width">Width.</param> /// <param name="height">Height.</param> public static bool Show(bool isDropInput = false, bool isOverlay = false, int x = -1, int y = -1, int width = -1, int height = -1) { #if UNITY_WEBGL && !UNITY_EDITOR bool success = WebGLFileUploadManager.Unity_FileUploadManager_Show(isDropInput, isOverlay, x, y, width, height); WebGLFileUploadManager.Unity_FileUploadManager_SetCallback(WebGLFileUploadManager.Callback); return(success); #else return(false); #endif }