Skip to Main Content
Building an RPG with Unity 2018 - Second Edition
book

Building an RPG with Unity 2018 - Second Edition

by Vahé Karamian
July 2018
Intermediate to advanced content levelIntermediate to advanced
366 pages
7h 48m
English
Packt Publishing
Content preview from Building an RPG with Unity 2018 - Second Edition

Creating the NPC canvas

The main differences between the canvas we will create for the NPC and that of the one we have been creating for the player are some of the configurations.

One of the main differences will be the Render Mode of the canvas. The NPC canvas will have a World Space Render Mode. This will allow us to position the canvas as another GameObject within the scene. The next important difference will be the Rect Transform attributes and, more importantly, the Scale and Rotation attributes.

Take a look at the following screenshot:

NPC health bar

To make life easier, all you need to do is create the canvas and change the properties ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Unity 2020 Game Development

Hands-On Unity 2020 Game Development

Nicolas Alejandro Borromeo
Unity 2018 Cookbook - Third Edition

Unity 2018 Cookbook - Third Edition

Matt Smith, Chico Queiroz, Jate Wittayabundit

Publisher Resources

ISBN: 9781788623469Supplemental Content