viii Contents
Chapter 3 Unreal Visual Scripting with Blueprints........................................85
3.1 Introduction to Unreal Blueprints.........................................85
3.2 A Tour o f Unre al Bluep rint Editor........................................85
3.2.1 Graph Editor.............................................................85
3.3 Types of Blueprints...............................................................86
3.3.1 Level Blueprint ........................................................86
3.3.2 Class Blueprint......................................................... 87
3.3.3 Data-Only Blueprint................................................. 87
3.4 Variables, Functions, and Events ..........................................92
3.4.1 Events.......................................................................93
3.4.2 Functions..................................................................93
3.4.3 Variables...................................................................93
3.5 Class Blueprints vs. Level Blueprints...................................94
3.6 Construction Script ............................................................... 97
3.7 Compone nts Mode................................................................98
3.7.1 Components .............................................................98
3.7.2 Component Events an d Functions ...........................98
3.8 Creating Your Own Class Blueprints..................................106
3.9 User Input and Interaction .................................................. 111
3.9.1 Action Mappings.................................................... 111
3.9.2 Axis Mapping s ....................................................... 111
3.10 Summary.............................................................................123
3.11 Exercises .............................................................................123
Chapter 4 Materials in U nreal Engine..........................................................125
4.1 Introduction.........................................................................125
4.2 Anatomy of a Material........................................................125
4.2.1 Materials vs. Textures ............................................126
4.2.2 Texture Coordinates (UVs) .................................... 127
4.3 Unreal Material Editor........................................................ 127
4.3.1 The Toolba r ............................................................128
4.3.2 Preview Window ....................................................128
4.3.3 Graph Canvas.........................................................128
4.3.4 Details Panel ..........................................................129
4.3.5 Expressions Palette ................................................129
4.4 Physically Based Mater ia ls in Unreal Engine 4 .................129
4.5 Anatomy of an Unreal Engine 4 Mater ia l...........................130
4.5.1 Material Nodes.......................................................130
4.5.2 Material Channels ....... ...........................................130
4.5.3 Material Shading Models....................................... 147
4.5.4 Material Domain ..... ...............................................148
4.5.5 Material Blend Mode .............................................149
4.6 Material Expressions in Unreal 4 .......................................18 0
4.6.1 Parameter vs. Non-Parameter Expressions ............ 181