0
\$\begingroup\$

How can I see whether my sprite is .png or .jpg in the Inspector view or some place alike in Unity?

Here is an example of me trying to get the file extension using Editor:

enter image description here

\$\endgroup\$
2
  • \$\begingroup\$ Why would you need this anyways? \$\endgroup\$ – Charanor Jun 25 '17 at 11:09
  • \$\begingroup\$ @Charanor, the reason I asked it because if it is possible to get the extension through only Editor that means I do not know the way to do it. So, if the way exists I hope to find a new, maybe very small and not that significant, Unity Editor capability which will enable me to some stuff I was not enabled before. In a shell, being able to get such info using only Editor extends my knowledge about Editor, so it is mostly just about proficiency while exploiting the Editor. \$\endgroup\$ – Yaroslav Jun 25 '17 at 11:31
2
\$\begingroup\$

Is it right your question just show the extensions of sprite in Unity Editor?

That's simple.

You just change to 2 Column Layout of Project window.

change to layout

\$\endgroup\$
2
  • \$\begingroup\$ Lol. I knew that way! Thanks a lot for reminding about it. I will wait a little bit maybe someone will give another way of doing it, the way which I did not know. And then I will accept your answer. \$\endgroup\$ – Yaroslav Jun 25 '17 at 12:55
  • \$\begingroup\$ @Yaroslav I think that's the only way. I had a thought about another one, but I checked it and nope, it doesn't say. However you can right click an asset and say "show in explorer" which would pop up a standard file browser centered on the asset. But that's not "within Unity." \$\endgroup\$ – Draco18s no longer trusts SE Jun 25 '17 at 15:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.