Skip to content

Instantly share code, notes, and snippets.

View maikelcoke's full-sized avatar
🎯
Focusing

Maikel Urlitzki maikelcoke

🎯
Focusing
View GitHub Profile
@maikelcoke
maikelcoke / ScrollAndPinch.cs
Created September 21, 2022 16:35 — forked from ditzel/ScrollAndPinch.cs
Pinch and Scroll to Move and Zoom in Unity for Mobile Games
/*
Set this on an empty game object positioned at (0,0,0) and attach your active camera.
The script only runs on mobile devices or the remote app.
*/
using UnityEngine;
class ScrollAndPinch : MonoBehaviour
@maikelcoke
maikelcoke / GUITab.cs
Last active May 8, 2018 11:49
GUITab.cs: Form tab functionallity
// Create a GUITab.cs and attach it to e.g. your Canvas:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class GUITab : MonoBehaviour
{
@maikelcoke
maikelcoke / UIWindowHelper.cs
Last active May 8, 2018 11:53
UIWindowHelper: Focus Window on title click
Create new UIWindowHelper.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIWindowHelper : MonoBehaviour {
public static void bringToFront(Transform window)
{