How to use sprites in Unity?

  • Drag an image from an external folder into Unity. This will create a Texture Asset;
  • You may need to convert this texture to a sprite in the inspector window;
Converting a texture into a sprite
Converting a texture into a sprite
  • Drag this texture asset to the hierarchy window. This will create a new gameObject with the same name as your texture, with a” Sprite Renderercomponent attached to it.
A sprite gameObject
A sprite gameObject
Creating a sprite in Unity
Creating a sprite in Unity
Changing the sprite image
Changing the sprite image
Accessing the sprite editor
Accessing the sprite editor
Sprite textures with multiple elements
Sprite textures with multiple elements
The Sprite Editor window
The Sprite Editor window
The “Slice” menu
The “Slice” menu
The sprite elements
The sprite elements
How to identify the sprite elements?
How to identify the sprite elements?
Adding sprites to the scene in Unity
Adding sprites to the scene

--

--

--

Computer Science Engineer and Cisco Instructor

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My experience as Celo India Fellow ‘21

Metaverse public chain project deep-dive (2): A creation platform specially built for Metaverse…

Metaverse public chain project deep-dive (2): A creation platform specially built for Metaverse applications

App Environments in Flutter and Visual Studio Code

1/23 to 1/24: Spend $2 for a $10 Certificate with code: WARMUP

Top 2 Frameworks for Cross-Platform Mobile App Development

Connect forms to Google Sheets

Lead form to Google Sheets

The Evolution of HTML

Flow control — MQTT 5.0 new features

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ouzani Abd Raouf

Ouzani Abd Raouf

Computer Science Engineer and Cisco Instructor

More from Medium

Guide to Making a Beautiful Game: Occlusion Culling

In just 4 steps, Make a modular moving platform in Unity

Utility Classes In Unity

P6: Creating a Gritty Office Den