Scene setup

When you first open the FactionScene example scene, you'll notice a UI that looks like this screenshot:

The sample scene UI setup

As you can see in the preceding screenshot, the UI comprises several different panels, and the text components have been initialized with some sample text to help organize everything nicely. The hierarchy for the scene is shown in this screenshot:

The FactionScene hierarchy

As you can see, our canvas has two main panels at the root level—the QuestionPanel and a ResultPanel, which is disabled by default. ...

Get Unity 2017 Game AI Programming - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.