Skip to main content

ICustomizationHandler

An interface in Root.Township, Alta.Customization.

Something that shows a customised player body, such as a player character or a dummy, and that the customization manager applies outfits to.

Properties​

MemberWhat it is
CharacterDummy CharacterDummy { get; }The character dummy used to show customisation, if any.
bool HasManager { get; }Whether a customization manager is set.
bool IsDestroyed { get; }Whether the handler has been destroyed.
bool IsFirstPerson { get; }Whether it is shown first person (the local player's own body).
PlayerCharacterCustomizationManager Manager { get; }The PlayerCharacterCustomizationManager applying customisation to this handler.
string Name { get; }A name for logs.
Transform RootBone { get; }Root bone of the body's skeleton.

Methods​

MemberWhat it is
void Destroy()Destroys the handler's visuals.
Transform GetBone(Transform oldBone, bool isLoggingUnfoundBones)Finds this body's matching bone for a bone from a customisation prefab, optionally logging when it is missing.
void SetFirstPerson(bool isFirstPerson)Switches between first and third person display.
void SetManager(PlayerCharacterCustomizationManager manager)Sets the customization manager.

Used in​

Members of other types that take, return or hold a ICustomizationHandler: