This little script can take a Screenshot in custom resolution and with the option to render a transparent background. This might come in handy when you want to create renderings of in-game assets from within the Unity Editor, like characters or vehicles.
Continue reading In-Editor Screenshot Script for UnityCategory: Code snippet
Boolean3 Utility Class for Unity
I created a small utility class that I have been missing a couple of times in Unity, especially when working on AR and VR projects lately. The Boolean3 class simply holds 3 boolean values and displays all of them in only one row in the Editor to save space.
Continue reading Boolean3 Utility Class for UnityHello world!
using UnityEngine;
public class NewChapterOfMyLife : MonoBehaviour {
// Use this for initialization
void Start() {
Debug.Log("Hello world!");
}
// Update is called once per frame
void Update() {
// TODO: Optimize. Of course we love Unity,
// but we shouldn't say that every frame.
// Let the splash screen take care of that!
Debug.Log("Unity is awesome!");
}
}