This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <Title>coroutine</Title> | |
| <Shortcut>co</Shortcut> | |
| <Description>Code snippet for Unity coroutine function</Description> | |
| <Author>Anthony Tesija</Author> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class FPSDisplay : MonoBehaviour | |
| { | |
| public Color _textColor; | |
| [Tooltip("This is the ratio to the height of the screen that the fps coutner will take up")] | |
| [Range(0.0f, 0.2f)] | |
| public float _fontSize = 0.1f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class ScreenshotUtility : MonoBehaviour | |
| { | |
| [Tooltip("The filepath to the save location for the screenshots")] | |
| public string _filepath; | |
| [Tooltip("Scales the image by the amount specified (0 for no scaling)")] | |
| public int _screenshotResolutionScaleFactor = 0; | |