# Customization

<details>

<summary>Damage Component Customization</summary>

To change the **Damage Component** variables, select the component from the owner's components panel:

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2FiSUSna4X63hK8PY4dYXo%2Fimage.png?alt=media\&token=4d93480e-e94b-43ff-8081-e5bd20d476e6)

The **Damage Component** includes 3 Categories With multiple customizable variables each:

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2F7mssqnBti5xpcUL7picX%2Fimage.png?alt=media\&token=da1322f2-4b4b-497e-9382-60c4f98c1fa1)

1. Health
   * HP Base | <mark style="color:yellow;">Default Value: 100</mark>
     * This is the real HP of the component that changes when taking damage\
       <mark style="color:red;">(As default set SAME as the HP Base Max)</mark>
   * HP Base Max | <mark style="color:yellow;">Default Value: 100</mark>
     * Maximum Base HP of the component
   * Use Shield? | <mark style="color:yellow;">Default Value: TRUE</mark>
     * Enables/Disables the Shield
   * HP Shield | <mark style="color:yellow;">Default Value: 100</mark>
     * This is the real Shield HP of the component that changes when taking damage\
       <mark style="color:red;">(As default set SAME as the HP Shield Max)</mark>
   * HP Shield Max | <mark style="color:yellow;">Default Value: 100</mark>
     * Maximum Shield HP of the component
2. Modifiers
   * Use Modifier? | <mark style="color:yellow;">Default Value: TRUE</mark>
     * Enables/Disables the modifiers function
   * Modifier Tick Speed | <mark style="color:yellow;">Default Value: 1</mark>
     * Sets How many seconds it takes to deal 1 modifier damage
   * Modifier Resistance | <mark style="color:yellow;">Type: Array</mark>
     * Sets the modifiers that the owner is resistant to\
       <mark style="color:red;">(Takes less Damage)</mark>
     * Takes values from 0 to 1
   * Modifier Resistance Multiplier | <mark style="color:yellow;">Default Value: 0.5</mark>
     * Sets how much the resistance affects damage\
       <mark style="color:red;">(Final Damage = Damage \* Resistance)</mark>
   * Modifier Vulnerability | <mark style="color:yellow;">Type: Array</mark>
     * Sets the modifiers that the owner is vulnerable to\
       <mark style="color:red;">(Takes more Damage)</mark>
     * Takes values from 1 to infinity
   * Modifier Vulnerability Multiplier | <mark style="color:yellow;">Default Value: 2</mark>
     * Sets how much the vulnerability affects damage\
       <mark style="color:red;">(Final Damage = Damage \* vulnerability)</mark>
3. Customization
   * Name | <mark style="color:yellow;">Type: String</mark>
     * Sets the Damage component name above the HP Bar
   * Background Color | <mark style="color:yellow;">Type: Linear Color</mark>
     * Sets the color of the HP Bar when it is empty
   * Hp Color | <mark style="color:yellow;">Type: Linear Color</mark>
     * Sets the color of the base HP Bar
   * Shield Color | <mark style="color:yellow;">Type: Linear Color</mark>
     * Sets the color of the shield HP Bar
   * Widget Offset | <mark style="color:yellow;">Type: Transform</mark>
     * Sets the widget offset as a transform\
       <mark style="color:red;">(Location, Rotation, Scale)</mark>
   * Seen Cooldown | <mark style="color:yellow;">Default Value: 0,5</mark>
     * Sets how many seconds it takes for the widget to disappear



</details>

<details>

<summary>X-Ray Widget Customization</summary>

To customize the X-Ray Widget, open the widget, located at:\
<mark style="color:green;">Content -> Ultimate Damage System -> Widgets -> Widget\_X-Ray</mark>

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2FUtimkQapinhJKAnLS01Q%2Fimage.png?alt=media\&token=68f01b84-e819-4918-b6bd-8248b179fca0)

The X-Ray widget is composed out of 6 layers, each with different properties and roles:

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2FgfuKpB7gSEsEPebJtZ59%2Fimage.png?alt=media\&token=50894f93-6e42-41cf-87f6-380d7d850b65)

1. Layer 01 - Background
   * This layer is the first layer in the hierarchy
   * You can attach any background design (Images, text, other widgets, etc.)
2. Layer 02 - Body
   * This layer is used for displaying the Body X-Ray that usually is not configured for taking damage.
3. Layer 03 - Components
   * This layer is used for displaying the Components X-Ray of the main body that can take damage
4. Layer 04 - Top
   * This layer is used for displaying the Top X-Ray that is not configured for taking damage
   * Additionally, this layer is able to rotate based on the relative rotation of the top and the body
5. Layer 05 - Top Components
   * This layer is used for displaying the Top Components X-Ray that can take damage
   * Additionally, this layer is able to rotate the same as the Top Layer
6. Layer 06 - Text
   * This layer is separate from the other layers
   * Used for displaying additional text information sch as the Name or other info

</details>

<details>

<summary>X-Ray creation Customization</summary>

To have access to the customization panel open the X-Ray Creation Level, go to:\
<mark style="color:green;">Content -> Ultimate Damage System -> Maps -> X-Ray\_LVL</mark>

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2F29MElnUkuL5i5SAjOcyx%2Fimage.png?alt=media\&token=5f0cb589-bdba-4234-a133-ad1339a2a07c)

Select the BP\_X-Ray\_Rig from the World outliner, located in the content folder at:\
<mark style="color:green;">Content -> Ultimate Damage System -> Blueprints -> BP\_X-Ray\_Rig</mark>

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2F4eKsUX82OMPcyzxhT8Z6%2Fimage.png?alt=media\&token=48a1c59f-f3fe-4287-8808-5e5d02d82d64)

![](https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2Flbav0LxkJwGPhZTILUwQ%2Fimage.png?alt=media\&token=d61f8000-4036-46fd-90a7-0d7984640431)

The **X-Ray** includes 2 Categories With multiple customizable variables each:

1.  Camera Settings

    * Camera Distance | <mark style="color:yellow;">Default Value: 1024</mark>
      * Sets the distance of the camera to the object in UE Units
    * Camera Rotation | <mark style="color:yellow;">Default Value: 0,0,0</mark>
      * Sets the rotation of the camera
    * Screenshot name | <mark style="color:yellow;">Type: String</mark>
      * Sets the name of the Screenshot in this format:\
        T\_X-Ray\_\[Preset name]\_\[Screenshot Name]
    * Resolution | <mark style="color:yellow;">Default Value: 1024</mark>
      * Sets the resolution in pixels in 1:1 format\
        <mark style="color:red;">(Ex. 1024x1024)</mark>

    <figure><img src="https://236017903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqQhvoSEoAYQugwWdBJRL%2Fuploads%2FvXIN7VOpUqoZBNov5UUT%2Fimage.png?alt=media&#x26;token=ea4a473e-2c1c-40f8-bab3-03cbf629861d" alt=""><figcaption></figcaption></figure>
2. Mesh Settings
   * Static Meshes | <mark style="color:yellow;">Type: Static Mesh + Transform Map</mark>
     * Sets the static meshes you want to scan, with relative offset
   * Skeletal Meshes | <mark style="color:yellow;">Type: Skeletal Mesh + Transform Map</mark>
     * Sets the skeletal meshes you want to scan, with relative offset
   * Hidden Bone Names | <mark style="color:yellow;">Type: String Array</mark>
     * Sets the bones you want to hide from the skeletal meshes
   * Preset | <mark style="color:yellow;">Type: Enum Presets</mark>
     * Sets the scan preset (Body material parameters and Post-Processing material parameters)
   * X-Ray Presets | <mark style="color:yellow;">Type: Data Structure</mark>
     * An array composed of all the presets parameters
     * Sets individual parameters of every preset

</details>
