![]() ![]() The reason is that for some Unity installations, even with a fresh new 2D project, images are imported as “Texture” and not “Sprite”. Some readers have reported that, in their project, this dialog was empty. “My sprite doesn’t show up in the dialog?”: first, make sure you are in the “Assets” tab of the “Select Sprite” dialog. Those are the default images used by uGUI (the Unity UI system). You can see that some other sprites are there. (You have to click on the small round icon at the right of the input box to show the “Select Sprite” inspector) Set the Sprite property to the “background” image: Make sure that “New Sprite” is selected and look at the inspector. ![]() We will now select the actual sprite to display. Here, it’s a Unity specific object made for 2D games. In general, we call “sprite” a 2D image displayed in a video game. In Unity, create a new Sprite game object in the scene. Simply copy the file in it, or drag and drop it from the explorer.ĭo not worry about the import settings for now. Import the image in the “sprites” folder. ![]() Using the empty project we created in the previous part, we will now learn how to add a background and some fancy clouds. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |