Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 2.44 KB

gear-asset.rst

File metadata and controls

65 lines (43 loc) · 2.44 KB

Gear Assets

The ItemGearAsset class is a base class that other classes are derived from. It is unusable on its own.

Game Data File

The ItemGearAsset class inherits properties from the ItemClothingAsset <doc_item_asset_clothing> class.

Properties

Property Name Type Default Value
Beard <doc_item_asset_gear:beard> flag <doc_data_flag>
Hair <doc_item_asset_gear:hair> flag <doc_data_flag>
Hair_Override <doc_item_asset_gear:hair_override> string <doc_data_builtin_types>

Some inherited properties behave differently when used by this class. Notably, these are:

  1. Beard_Visible <doc_item_asset_clothing:beard_visible> (from ItemClothingAsset <doc_item_asset_clothing>). This property's default behavior is altered. Refer to this class's Beard property instead.
  2. Hair_Visible <doc_item_asset_clothing:hair_visible> (from ItemClothingAsset <doc_item_asset_clothing>). This property's default behavior is altered. Refer to this class's Hair property instead.

Property Descriptions

Beard flag <doc_data_flag>

When this flag is not included, the parent class's Beard_Visible <doc_item_asset_clothing:beard_visible> property is set to false. This flag must be included if the character's facial hair should be visible.


Hair flag <doc_data_flag>

When this flag is not included, the parent class's Hair_Visible <doc_item_asset_clothing:hair_visible> property is set to false. This flag must be included if the character's hair should be visible.


Hair_Override string <doc_data_builtin_types>

When this property is set, the game will look for a child Mesh Renderer component in Unity that has the same name as this property's value. If a matching Mesh Renderer is found, its material will be changed to the character's hair material. This property is used by certain cosmetics that entirely cover the character's hair, so that the player's selected hair color can still be used for customization.