Skip to Content
Accessorizer: Setup and Tutorial

Learn how to use the Accessorizer editor extension to control objects using groups, rules, and outfits.

Date 13 May 2024
Share
Accessory Groups and Items

A scriptable object asset is used to manage item groups a selections. Create a new Accessorizer configuration by right-clicking in the project view, and selecting Create > Accessorizer > Config.

E6 Bsavn Wa D Jy GR Qa

Add an Accessory Behavior component to the root transform of item wish to configure.

G Cq I Ry Lhq Wm G1cn3

Place or select the accessory asset in the reference slot.

9l5 H9f T66m IK Ou ES

Create a new group for each collection of objects.

8975 Yo Jd CQRH Bw Ma

Add a new item to groups using the new item button.

Sd9 C Unm6 M4 BA Je OJ

Drop a game object from the scene view onto the object reference to associate the transform with the item.

Wumd6 Hool P Uvmays

Warning: All item transform names must be unique!

Test item selection using the checkboxes on each item. When one item is selected, other items in the same group are disabled.

5 Za R53v6 J3 Y Az Nr P

Note: Check for tooltips on properties for a description of their use.

Accessory Effects

Effects can be set to control the status of items in other groups when a particular item is active. To add effects, first open the item by pressing the edit button.

K Tn T Ztd P8 Advc3 AU

To add or edit effects for the current item, toggle the item’s effects button.

KWHV4 B Nfqgmv Rqw G

Note: Rules can only affect items in other groups.

In the following example, when AccessoryItem_1 is activated, AccessoryItem_2_1 is also expected to be active:

Tf Nt Rj X Lh Gdiryrp

Rules are applied automatically if selection is randomized, and can be controlled programmatically.

Color Groups

Each item can belong to a single color group. Color groups are simple groups of colors, which modify the mesh materials’ color.

Create a new color group, and provide a name and size for possible random colors.

L Mev C Eb JV1 SU1 WND

When an item is activated by either random generation or the SetItemActive method of the Accessory Behavior component, meshes will have their base colors modified if it belongs to a color group.

Byx P4ujr R9sj26 CT

After creating the color group, associate items with the new group from the dropdown in the item editor.

Z5 A4 Rt1v OC26 K2 Mw

Note: Material colors are only modified at runtime.

Outfits

After selecting a set of active items, that configuration can be saved as an Outfit, both in editor and at runtime. The following three ways to save a particular accessory configuration exists:

  1. Save in editor, deployed with configuration asset.
  2. Save at runtime to local storage.
  3. Save in editor as resource.

To save the current configuration in editor, expand the Outfits area and select [New Outfit].

H Vk M Giq Wj Tr M Yaq5

Outfits can be loaded in editor using the [Equip] button, or programmatically at runtime using the outfit name.

Note: Rules are not applied when equipping outfits.

To save a configuration as a resource file, expand the “Outfit Resources” section of the configuration:

N6x USGW Tz Jv Ek ZD5

The included demo scene contains script examples of all interactions, including saving and loading outfits from both resources and local storage.

Conclusion

If you have any questions or feature requests, feel free to reach out!

[email protected]

We appreciate your feedback, and would appreciate it if you would leave a review of the asset on the Asset Store.

Learn More