├── .gitignore ├── Assets ├── MainScene.unity ├── MainScene.unity.meta ├── SendToGoogle.cs └── SendToGoogle.cs.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | # Builds 33 | *.apk 34 | *.unitypackage 35 | -------------------------------------------------------------------------------- /Assets/MainScene.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/Assets/MainScene.unity -------------------------------------------------------------------------------- /Assets/MainScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acd641bb762952e46a71478f0aed7c0d 3 | timeCreated: 1495807758 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SendToGoogle.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | public class SendToGoogle : MonoBehaviour { 7 | 8 | public GameObject username; 9 | public GameObject email; 10 | public GameObject phone; 11 | 12 | private string Name; 13 | private string Email; 14 | private string Phone; 15 | 16 | [SerializeField] 17 | private string BASE_URL = "https://docs.google.com/forms/d/e/1FAIpQLSeAC0CYd1m9hvphv28eSv-ot4lZpszLDUmQa_B76vAEjZ-6Ow/formResponse"; 18 | 19 | IEnumerator Post(string name, string email, string phone) { 20 | WWWForm form = new WWWForm(); 21 | form.AddField("entry.1673653496", name); 22 | form.AddField("entry.1422402232", email); 23 | form.AddField("entry.1022174842", phone); 24 | /* 25 | ** Outdated 26 | byte[] rawData = form.data; 27 | WWW www = new WWW(BASE_URL, rawData); 28 | yield return www; 29 | */ 30 | UnityWebRequest www = UnityWebRequest.Post(BASE_URL, form); 31 | yield return www.SendWebRequest(); 32 | 33 | if (www.isNetworkError) 34 | { 35 | Debug.Log(www.error); 36 | } 37 | else 38 | { 39 | Debug.Log("Form upload complete!"); 40 | } 41 | } 42 | public void Send() { 43 | Name = username.GetComponent().text; 44 | Email = email.GetComponent().text; 45 | Phone = phone.GetComponent().text; 46 | StartCoroutine(Post(Name, Email, Phone)); 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Assets/SendToGoogle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f540c3ff6865bae4eae0e51ace96b278 3 | timeCreated: 1495806824 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luzan/Unity-Google-Spreadsheet/61285231a5cfa9bf5a6ec1e00df3159ff1dbdde0/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity to Google Spreadsheet 2 | 3 | 4 | 5 | Use this project idea to save data from Unity App to Google Spread sheet, watch [this](https://www.youtube.com/watch?v=z9b5aRfrz7M) video on YouTube to learn all process of making this project. 6 | 7 | 8 | 9 | # Requirements 10 | 11 | 12 | - Unity 5 or above 13 | 14 | - Google Account 15 | 16 | - Web Browser 17 | 18 | 19 | 20 | # Features 21 | 22 | 23 | - Save data from Unity to Google Spreadsheet 24 | 25 | - No Authentication required 26 | 27 | - No plugins required 28 | 29 | - No SDK support required 30 | 31 | - Lightweight 32 | 33 | **Blog Source:** [How to save data to Google Spreadsheet from Unity 3D (No SDK - No Plugins)](https://www.justcode.me/unity/save-data-google-spreadsheet-unity-3d-no-sdk-no-plugins/) 34 | 35 | **YouTube Video:** [How to send data from Unity to Google SpreadSheet via Google Forms](https://www.youtube.com/watch?v=z9b5aRfrz7M) 36 | 37 | 38 | 39 | **StackOverflow Discussion:** [How to send data from Unity to Google SpreadSheet via Google Forms](https://stackoverflow.com/q/44200938/1939163) 40 | 41 | 42 | 43 | License 44 | 45 | ---- 46 | 47 | 48 | 49 | MIT 50 | --------------------------------------------------------------------------------