Documentation
Search…
Unit Prefab Profile
A unit prefab profile contains information needed to configure the GameObject prefab that represents the character model for any character.

Creation

To create a unit prefab profile, find (or create) the GameName/Resources/GameName/UnitPrefabProfile folder in the project tab and right click. Choose Create > AnyRPG > UnitPrefabProfile.

Properties

Name
Description
Unit Prefab
A link to a prefab that will be used for the character unit. The unit prefab does not have to, but can optionally, include a model.
Model Prefab
A link to a prefab that will be used for the character model if the model is separate from the Unit Prefab.
Animation Profile Name
The name of an Animation Profile that will be used for the model animations.
Use Inline Animation Props
If true, the Animation Props field will be used for animation properties, instead of a shared Animation Profile.
Animation Props
Inline properties of an Animation Profile.
Rotate Model
If true, the model will be rotated to face in the direction of travel. This option should be used if no strafe animations exist for the model.
Name Plate Props
Nameplate, unit frame, and unit preview settings. See Name Plate Properties.
Position
If being used as a mount, the Vector3 position in relation to the Target Bone the character will be mounted to when riding.
Rotation Is Global
If true, and being used as a mount, the value in the Rotation field will be considered global (relative to world space) instead of local.
Rotation
If being used as a mount, the Vector3 rotation in relation to the Target Bone the character will be mounted to when riding.
Scale
If being used as a mount, the Vector3 scale of the character when riding.
Target Bone
If being used as a mount, the bone the character will be attached to when riding.
Attachment Profile Name
The Attachment Profile used to lookup actual bone names when attaching prefabs (holdable objects) to the character model.
Float Height
When floating in water, the height from the bottom of the character that the water line will sit at.
Add Float Height To Transform
If true, the height of the Float Transform will be added to the Float Height. If false, the Float Transform height will replace the Float Height if the Float Transform is found.
Float Transform
The name of a bone that should be used for the water line when floating.

Name Plate Properties

Name
Description
Display Name
The name that is printed on the nameplate above the character model. This value will also override whatever is set for the interactable mouseover display name.
Suppress Name Plate
If true, no nameplate will be shown above this character.
Suppress Faction
If true, the faction will not be shown on the nameplate.
Override Nameplate Position
If true, the nameplate position will be shown at the manual value in the Name Plate Position field.
Unit Frame Target
The name of a bone that the camera will look at when taking a snapshot for the unit frame.
Unit Frame Camera Look Offset
Any Vector3 offset that the camera will look at relative to the Unit Frame Target.
Unit Frame Camera Position Offset
The position of the unit frame camera relative to the Unit Frame Target.
Unit Preview Target
The name of a bone that the camera will look when displaying the character in a full body unit preview window.
Unit Preview Camera Look Offset
Any Vector3 offset that the camera will look at relative to the Unit Preview Target.
Unit Preview Camera Position Offset
The position of the unit preview camera relative to the Unit Preview Target.

Next Steps

Copy link
On this page
Creation
Properties
Name Plate Properties
Next Steps