Skip to content

Instantly share code, notes, and snippets.

View GieziJo's full-sized avatar

Giezi GieziJo

View GitHub Profile
@GieziJo
GieziJo / ImportGoogleSheet.cs
Last active May 5, 2021 08:57
Download google docs sheet as string using unity editor coroutines and networking
using System.Collections;
using Unity.EditorCoroutines.Editor;
using UnityEditor;
using UnityEngine;
using UnityEngine.Networking;
public static class ImportGoogleSheet
{
const string SHEET_ID = "";
// ===============================
// AUTHOR : J. Giezendanner
// CREATE DATE : 12.03.2020
// MODIFIED DATE :
// PURPOSE : Adds helper functions to the RectTransform to align the rect to the anchors and vise-versa
// SPECIAL NOTES : Sources for certain informations:
// Display anchors gizmos:
// https://forum.unity.com/threads/recttransform-custom-editor-ontop-of-unity-recttransform-custom-editor.455925/
// Draw default inspector:
// https://forum.unity.com/threads/extending-instead-of-replacing-built-in-inspectors.407612/
@GieziJo
GieziJo / ScriptHelper.cs
Created February 19, 2020 12:28
Create a new Script on a GameObject and start editing the file right away
// ===============================
// AUTHOR : J. Giezendanner
// CREATE DATE : 19.02.2020
// MODIFIED DATE :
// PURPOSE : Adds a context menu to create a new script on the selected GameObject, and opens the editor to
// edit the script
// SPECIAL NOTES : Inspired by http://answers.unity.com/answers/1007397/view.html
// ===============================
// Change History:
//==================================
@GieziJo
GieziJo / AnimatorHelper.cs
Last active February 19, 2020 06:59
Unity - add Animator, Animator Controller and Animation to GameObject in hierarchy
// ===============================
// AUTHOR : J. Giezendanner
// CREATE DATE : 18.02.2020
// MODIFIED DATE :
// PURPOSE : Adds a context menu to create an Animator Component, Animator Controller
// and Animation to a GameObject in the hierarchy
// SPECIAL NOTES :
// ===============================
// Change History:
//==================================