Unity stops responding as I assign texture2d variable.

Debug.Log is very very very slow (1). If your image is 512x512 pixels for example, you log 262144 messages to the Debug Console, this causes Unity to choke.

Please use code-tags the next time you post source code:

1 Like