English 中文(简体)
Unity - Internal Assets
  • 时间:2024-09-17

Unity - Internal Assets


Previous Page Next Page  

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 pghting 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-cpck 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 cpck 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