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

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.

主站蜘蛛池模板: 金阳县| 平和县| 高密市| 科技| 车险| 调兵山市| 漳平市| 方城县| 余江县| 八宿县| 乌鲁木齐市| 建平县| 土默特左旗| 汨罗市| 东乡县| 黄浦区| 安龙县| 定兴县| 开原市| 普陀区| 康保县| 兴义市| 忻州市| 天峨县| 宜兴市| 成安县| 名山县| 松江区| 贵港市| 汶川县| 宽甸| 陆丰市| 东城区| 利辛县| 莆田市| 醴陵市| 普兰店市| 长沙县| 垫江县| 临海市| 剑阁县|