We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
I figured it out, you need to use this helper class (unless there is an easier and more efficient way..
using UnityEngine;
public static class ConvertToSpriteExtensiton { public static Sprite ConvertToSprite(this Texture2D texture) { return Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), Vector2.zero); } }
credit to nnm_t on githib.
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: