官术网_书友最值得收藏!

Importing your own content

Now that we have a good foundation on the Content Browser tab, let's start off by bringing in some of our own content into the game.

Getting ready

This recipe assumes that you have a project open with the sample assets included. If you do not have that yet, feel free to follow the instructions in the Getting ready section of the UI overview recipe.

In addition, this recipe uses assets from the example code provided for the book. If you do not have it, download it from the Packt Publishing site at http://www.packtpub.com

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

How to do it…

Let's start off by importing a simple model from the Content Browser tab.

  1. Make sure that the Content Browser tab is at the Game folder and then click on the Import button.
  2. Once there, browse to the location where the example code of this chapter is placed and open the Ship folder. Select the Ship.fbx file and then click Open.
  3. You'll be prompted with an FBX import dialog, click on Import, and you should see your new asset included in the Content Browser tab, accompanied by Materials that was created to be used for the Ship model.
    How to do it…
  4. The other way to import assets is simply by dragging and dropping them into the Content Browser tab. Let's do this by opening up our Ship folder in our operating system and then dragging it onto the asset view of the Content Browser tab. You'll notice that textures (images) do not have a dialogue like the model did.
  5. Currently, all of the objects have a * in the bottom-left corner of their images. This is because they are currently not saved to the project. Fix this by clicking on the Save icon (blue floppy disk) in the Content Browser tab.

    Alternatively, you may also right click within the Content Browser tab and then navigate to Import to /Game to import assets into your scene from whatever folder you are currently in.

主站蜘蛛池模板: 绿春县| 安福县| 彰化县| 邻水| 德清县| 东丰县| 秦皇岛市| 康乐县| 泗水县| 乌苏市| 清新县| 丰宁| 原阳县| 凤山市| 资溪县| 保靖县| 鄂温| 漯河市| 恩施市| 广河县| 绥芬河市| 古浪县| 长汀县| 玉溪市| 江达县| 会宁县| 白城市| 孟津县| 汕尾市| 宾阳县| 界首市| 双鸭山市| 卓资县| 棋牌| 惠安县| 绩溪县| 龙游县| 西和县| 大新县| 潮安县| 遂川县|