UnrealScript Game Programming Cookbook

(Chris Devlin) #1
Chapter 3

67

There's more...


In the default properties for our Camera class, we listed the path to our camera archetype.
Now that we've created our archetype, we can fill in our default property with the proper location:



  1. Right-click on Arc_TutorialCamera in your Content Browser and scroll down to
    Copy full name to clipboard.

  2. With the name copied, go to TutorialCamera.uc and in default properties our
    TutorialCamera will now grab its values from what we set in the editor, and your
    class should look like the following:


defaultproperties
{
/** This sets our camera to use the settings we create in
the editor */
CameraProperties=TutorialCameraProperties'TutorialPackage.
archetypes.Arc_TutorialCamera'
}

See also


You can add sockets to your pawn at any time to make offsetting your camera even easier.
The following is an image illustrating the five sockets available to our pawn by default:

Free download pdf