Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Changing sprites at runtime without Resource.Load?

$
0
0
Hi all

I've been using unity for a while now but I'm pretty new to the canvas system (been using 2D Toolkit for UI up until now).

I have some interface elements that change sprites pretty often, like inventory grids and enemy profile icons. It seems that the only way to load up sprites at runtime is by either:

1) Using Resource.Load: I've always avoided using because it's considered slow and bad practice at runtime.
2) Dragging the sprites into public properties in the editor beforehand...

Changing sprites at runtime without Resource.Load?

Viewing all articles
Browse latest Browse all 23263

Trending Articles