Skip to content

Instantly share code, notes, and snippets.

@openroomxyz
Created April 21, 2020 10:27
Show Gist options
  • Select an option

  • Save openroomxyz/f1ab29ba89ee9dabbb25e6309b03b28a to your computer and use it in GitHub Desktop.

Select an option

Save openroomxyz/f1ab29ba89ee9dabbb25e6309b03b28a to your computer and use it in GitHub Desktop.
Unity : How to find out is two Textures2D are the same size?
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