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
| public static class KeyCodes { | |
| public const ulong LMB = 1; | |
| public const ulong RMB = 2; | |
| public const ulong CTRL_BREAK_PROCESSING = 3; | |
| public const ulong MMB = 4; | |
| public const ulong BACKSPACE = 8; |
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 System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class ObjectDeepCount : MonoBehaviour { | |
| [MenuItem("Assets/Count objects")] | |
| private static void DeepCountObjectHierarchy() { |
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
| import android.graphics.Matrix; | |
| import android.media.ExifInterface; | |
| // Some reference: https://msdn.microsoft.com/library/windows/apps/windows.storage.fileproperties.photoorientation | |
| public class ExifToMat { | |
| public static Matrix fromOrientation(final int pExifOrientation) { | |
| Matrix matrix = new Matrix(); | |
| switch (pExifOrientation) { |