Skip to main content

CustomizationStateSettings

A class in Root.Township, ATT.PlayerStates.

Settings for the character customization player state: the room prefab to spawn, where, and what happens when the player finishes.

Constructors​

MemberWhat it is
CustomizationStateSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

6 private and internal fields
MemberWhat it is
private CosmeticCustomizationManager customizationRoomPrefabBacking field for CustomizationRoomPrefab, the character customization room that gets spawned.
private float fadeInDurationBacking field for FadeInDuration (5 seconds by default).
private GameAction finishCustomizationActionBacking field for FinishCustomizationAction, the game action run when customization is finished.
private bool isSkippingCustomizationBacking field for IsSkippingCustomization. When set, the customization room is skipped.
private Vector3 roomPositionBacking field for RoomPosition, where the room is placed.
private Vector3 roomRotationBacking field for RoomRotation, the room's rotation as Euler angles.

Properties​

MemberWhat it is
CosmeticCustomizationManager CustomizationRoomPrefab { get; }The customization room prefab.
float FadeInDuration { get; }Seconds to fade in.
GameAction FinishCustomizationAction { get; }Game action run when customization is finished.
bool IsSkippingCustomization { get; }When true, customization is skipped.
Vector3 RoomPosition { get; }Where the room is placed.
Vector3 RoomRotation { get; }Room rotation as Euler angles.
override Type StateType { get; }CustomizationState.

Used in​

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