Decorating in 3D Game Kit

Revisado con versión: 2018.1

-

Dificultad: Principiante

In the Game Kit we provide all the environment objects we used to build the example game.

You can find these in Prefabs > Environment > [….]

They are split into folders of different types of assets. Go through the folders and start building out your scene.

What world can you create?

Note: You will need to rebake the NavMesh for your enemies to know that the new surfaces you add are walkable or that they need to avoid objects (like big plants).

  • In the Hierarchy select the Plane

  • Navigate to the Inspector

  • In the NavMesh Surface click Bake

Rock and Vegetation Painter

To further spruce up your scene, we have created a Rock Painter and a Vegetation Painter. These tools allow you to place vegetation and rocks with varying sizes and rotations while keeping them aligned with the surface you are painting on.

To use these tools:

  • In the Hierarchy locate VegetationPainter

  • Click on the down arrow to expand its children

  • Click on GroundCover

  • Hover the mouse over the ground in the Scene View

  • Left click to place some grass/lilly pads where you want them.

You can change the type of object being placed to do this:

  • Navigate to the Inspector

  • In the Instance Painter component there are pictures of each prefab in the painter.

  • Click on the white highlighted box to select that Prefab to paint with.

  • The selected prefab will be grey

Controls for the painter can be found at the top of the Instance Painter Component, some controls to get your started:

Left Click = Paint

Ctrl (Cmd) + Left Click = Delete

Alt + Scroll = Increase Brush Size

Space = Randomize positions and rotation

Any object you paint on will be stored as a Child of the Parent. For example:

  • Navigate to the Hierarchy

  • Expand GroundCover

Every object of that type from the paint will be stored here as a child. You can also click on these to individually edit and place them.

The process is the same to paint VegetationSmall, VegetationMedium & VegetationLarge

Painting rocks is done in the same way:

  • In the Hierarchy find RockPainter

  • Click on the arrow to expand its Children

  • Click on RocksSmall

  • Hover your mouse over the desired area to place rocks and Click to place.