Skip to content

Instantly share code, notes, and snippets.

View WizzardMaker's full-sized avatar
💭
working on Settler 4 HD Patch

Jonas Schoenwald WizzardMaker

💭
working on Settler 4 HD Patch
View GitHub Profile
@WizzardMaker
WizzardMaker / CameraBorder.cs
Created December 18, 2015 11:53
This script adds a border to the top or the side, this scripts needs CameraSize.cs
using UnityEngine;
using System.Collections;
namespace StandardAssets{
/// <summary>
/// Adds a border to the top or the side.
/// Add this one to the child camera!
/// </summary>
[ExecuteInEditMode]
@WizzardMaker
WizzardMaker / CameraSize.cs
Last active September 21, 2016 15:12
A script to let the camera resize to a given Aspect Ratio
using UnityEngine;
using System.Collections;
namespace StandardAssets {
/// <summary>
/// Set the view rect of the Camera to the given Aspect Ratio
/// </summary>
[ExecuteInEditMode]
public class CameraSize : MonoBehaviour {