Created
April 21, 2020 10:27
-
-
Save openroomxyz/f1ab29ba89ee9dabbb25e6309b03b28a to your computer and use it in GitHub Desktop.
Unity : How to find out is two Textures2D are the same size?
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
| static bool Texture2d_isSameSize(in Texture2D a, in Texture2D b) { return ((a.width == b.width) && (a.height == b.height)); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment