See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| using UnityEngine; | |
| using System.IO; | |
| using NaughtyAttributes; | |
| [ExecuteInEditMode] | |
| public class URPSpriteCaptureTool : MonoBehaviour | |
| { | |
| public Camera captureCamera; | |
| public string saveFolder = "Assets/_CapturedSprites"; | |
| public string fileName = "GeneratedSprite"; |
| /* To avoid performance issues caused by string constructions when logging stuff | |
| * to the console, simply surround the code with the the following: | |
| * | |
| * #if DEBUG_LOGGING | |
| * Debug.Log("my" + numer.ToString("0.00") " super" + " expensive " + " string building code"); | |
| * #endif | |
| * | |
| * When creating a non-debug build or testing the game for performance, simply disable | |
| * the debug messages from the Unity menu (menu name can be simply changed below). | |
| */ |
| /// | |
| /// Simple pooling for Unity. | |
| /// Author: Martin "quill18" Glaude ([email protected]) | |
| /// Latest Version: https://gist.github.com/quill18/5a7cfffae68892621267 | |
| /// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
| /// UPDATES: | |
| /// 2015-04-16: Changed Pool to use a Stack generic. | |
| /// | |
| /// Usage: | |
| /// |
| //Copyright (c) 2014 Tilman Schmidt (@KeyMaster_) | |
| //Permission is hereby granted, free of charge, to any person obtaining a copy | |
| //of this software and associated documentation files (the "Software"), to deal | |
| //in the Software without restriction, including without limitation the rights | |
| //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| //copies of the Software, and to permit persons to whom the Software is | |
| //furnished to do so, subject to the following conditions: | |
| //The above copyright notice and this permission notice shall be included in |