Unity - Internal Assets


Advertisements

Alongside the external assets that you import from other programs such as audio files, images, 3D models, etc., Unity also offers the creation of Internal assets. These assets that are created within Unity itself, and as such do not need any external program to create or modify.

A few important examples of internal assets are as shown below −

  • Scenes − These act as “levels”.

  • Animations − These contain data for a gameObject’s animations.

  • Materials − These define how lighting affects the appearance of an object.

  • Scripts − The code which will be written for the gameObjects.

  • Prefabs − These act as “blueprints” for GameObjects so they can be generated at runtime.

A few other important assets are Placeholder, Sprites and Models. These are used when you need quick placeholders so they may be replaced with proper graphics and models later.

To create an internal asset, right-click in the Assets folder and go to Create.

Internal Asset Creation

In this example, we will create a Triangle and a Square.

Scroll over the Sprites selection and click on Triangle.

Creating Triangle and Square

Repeat the process for Square, and you should have two new graphic assets.

Created Triangle and Square

As we move along, we will explore more of these internal assets, since they are crucial to building a proper game.

Advertisements