Skip to content

Instantly share code, notes, and snippets.

View trolit's full-sized avatar

p4w31 !d21k0w541 trolit

View GitHub Profile
using UnityEngine;
using System.Collections;
public class CameraScreenResolution : MonoBehaviour {
public bool maintainWidth=true;
[Range(-1,1)]
public int adaptPosition;
float defaultWidth;
@mminer
mminer / Marquee.cs
Last active January 27, 2024 10:32
Simple Unity script to create a scrolling marquee.
using UnityEngine;
public class Marquee : MonoBehaviour
{
public string message = "Where we're going, we don't need roads.";
public float scrollSpeed = 50;
Rect messageRect;
void OnGUI ()