square-codeAPI

HeroBridge Standalone API Reference

All examples assume you already have a reference to a SidekickCharacter component.

SidekickCharacter sidekick = characterGameObject.GetComponent<SidekickCharacter>();

Configuration

/// <summary>
/// Enables or disables rebuilding the Animator hierarchy when applying parts.
/// </summary>
/// <param name="value">
/// True to rebuild the Animator root (recommended default behavior).
/// False to confirm the Animator reference without rebuilding.
/// </param>
sidekick.SetRebuildAnimatorRoot(bool value);
/// <summary>
/// Sets whether the character body should be reset before applying new parts.
/// </summary>
/// <param name="value">
/// When true, parts not included in the new setup are removed.
/// When false, existing parts that are not overridden remain.
/// </param>
sidekick.SetResetBody(bool value);

Parts


Cycling Parts


Presets


Colors


Expressions


Body Blendshapes


Saving and Loading

circle-info

Note: The character GameObject name is used as the unique ID when saving and loading.

Components

The following components support being triggered manually via an Apply() method. All of them require a reference to a GameObject with a Sidekick Character component.

  • Sidekick Part Applier

  • Sidekick Preset Applier

  • Sidekick Expression Applier

  • Sidekick Cycle Part

  • Sidekick Save Load Applier

  • Sidekick Part Icon Generator

  • Sidekick Color Applier

  • Sidekick Body Blendshape Applier

These components can be used with Apply Mode set to On Invoke, so you can control exactly when they execute.

Example: Calling Apply from code

Last updated