You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

2 D铆as
3 Hrs
38 Min
41 Seg

Importando nuestros assets

5/34
Resources

How to import free graphic assets into Unity?

Creating a video game project requires various visual elements to achieve a compelling and engaging product. Finding and using free graphical assets can be a great way to get started. In this content, we will explore how you can incorporate these elements into your own project using Unity, starting by examining what graphic assets are and how to use them legally and efficiently.

What is a graphical asset and how to get one?

Graphic assets are visual elements that are used in video game development to enrich the user experience. These can be images, textures, sprites, sounds, 3D models, among others. An excellent resource for acquiring quality assets are those under the Creative Commons license. This license allows the use, modification and redistribution of the assets, even for commercial purposes.

Example of a free asset resource

One of the most recognized creators of free assets is Kenney, who has published hundreds of elements ready to be used by developers all over the world. However, he is not the only option; there are numerous websites where you can download these assets, and in the class resource file, some examples of platforms are included.

How to import assets into Unity?

Once you have your graphic assets, the next step is to import them into your Unity project. Here we take you step by step through the process:

  1. Create a folder in the assets section of your project: Right click, select "Create", then "New folder" and name it 'sprites'.
  2. Import the assets: Inside the created folder, right click and choose "Import new assets". Navigate to where your sprites are stored and select the ones you want to import.
  3. Adjust the units per pixel settings: They are initially set to 100 units per pixel. Experiment with this value to adjust the size of your sprites to suit the needs of your game. For example, changing to 300 units per pixel can make the sprites take up a single unit of in-game space, ideal for certain designs like the one we used in the Max3 project.
// Adjust units per pixel settings in UnityspriteRenderer.sprite.pixelsPerUnit = 300;

Why use version control with GitHub?

Version control is vital in any development project. GitHub allows you to keep track of every change you make, ensuring that you can roll back to previous versions if necessary, and makes it easy to share your progress with other developers.

  1. Upload your changes to GitHub: After you've added assets and made configurations to your project, review the changes in the corresponding tab on GitHub Desktop.
  2. Make a commit: Give a meaningful description to your commit, for example, "We added the initial assets", to make it easier to identify the change in the future.
  3. Keep a commit history: With the commit history you can see the progress made during the project, increasing the security of your data and collaboration with other developers.

Best practices when managing assets

  • Organize your files from the beginning: Maintaining an orderly structure will make it easier to manage and access your assets.
  • Use version control consistently: Making commits every time you complete a significant task in your project will help keep everything under control.
  • Share your asset sources with the community: If you know of other places to get assets for free, share them to support other developers.

Correctly incorporating assets to your project is a fundamental step to start the development of a video game. Explore the resources, adjust the right settings and make sure to use a version control system to keep your progress safe. Cheer up, you are on the right track to develop an exceptional game!

Contributions 6

Questions 1

Sort by:

Want to see more contributions, questions and answers from the community?

A mi personalmente me gusta buscar en la tienda de unity , pueden descargar una gran cantidad de assets como 2d, 3d, audio, VFX entre muchas cosas mas y implemetarlos en unity es muy facil ya que practiamente lo hace unity
Adjunto una imagen de referencia, en Package Manager pueden administrar todos los asset que hayan descargado
Obviamente pueden buscar aseets gratiutos dando el la opcion de free assets

No est谩 ning煤n archivo .rar en la clase, sin embargo se cuenta con el repositorio del proyecto el cual tiene la carpeta assets, a煤n as铆 puede haber alumnos que se confundan por esta situaci贸n y no encuentren el material.

De paso mencionar que hay muchos lugares para encontrar assets (archivos para nuestro juego, audio, im谩genes, etc.) pero lo improtante siempre es ver que tengan sentido y coherencia est茅tica y que adem谩s revisar su licencia y leer que hasta que punto podemos usar ese contenido ya que podr铆amos inflingir leyes de derechos de autor, como bien se se帽al贸 en el inicio de la clase

Aqu铆 dejo el link de la fuente original de los asets <https://www.kenney.nl/assets/animal-pack>
no me funciona git hub,es decir, no tengo esa misma version
Un tip para seleccionar m谩s f谩cil varios elementos dentro de la vista **project.** Click en el **primer elemento** y luego con **ctrl + shift + click** en el **煤ltimo elemento**, seleccionar谩n todos los que est茅n en ese rango.
Estoy en la interfaz nueva de Platzi y la vista de recursos esta vac铆a. Ayuda con los assets!