Search Results for

    Show / Hide Table of Contents

    Class CustomizationSlot

    A location in a rig that changes SpriteRenderers.

    Inheritance
    Object
    CustomizationSlot
    WeaponSlot
    Namespace: CustomizableCharacters
    Assembly: cs.temp.dll.dll
    Syntax
    public class CustomizationSlot : MonoBehaviour

    Fields

    _detailSpriteRenderer

    A location in a rig that changes SpriteRenderers.

    Declaration
    protected SpriteRenderer _detailSpriteRenderer
    Field Value
    Type Description
    SpriteRenderer

    _spriteRenderer

    A location in a rig that changes SpriteRenderers.

    Declaration
    protected SpriteRenderer _spriteRenderer
    Field Value
    Type Description
    SpriteRenderer

    Properties

    DetailSortOrder

    A location in a rig that changes SpriteRenderers.

    Declaration
    public int DetailSortOrder { get; }
    Property Value
    Type Description
    Int32

    IsHidden

    A location in a rig that changes SpriteRenderers.

    Declaration
    public bool IsHidden { get; }
    Property Value
    Type Description
    Boolean

    Location

    A location in a rig that changes SpriteRenderers.

    Declaration
    public CustomizationLocation Location { get; }
    Property Value
    Type Description
    CustomizationLocation

    OriginalSortOrder

    A location in a rig that changes SpriteRenderers.

    Declaration
    public int OriginalSortOrder { get; }
    Property Value
    Type Description
    Int32

    SortOrder

    A location in a rig that changes SpriteRenderers.

    Declaration
    public int SortOrder { get; }
    Property Value
    Type Description
    Int32

    Sprite

    A location in a rig that changes SpriteRenderers.

    Declaration
    public Sprite Sprite { get; }
    Property Value
    Type Description
    Sprite

    Methods

    Clear()

    Clears the slot by setting the sprites to null and colors to white.

    Declaration
    public void Clear()

    Hide()

    Hides the slot by disabling the sprite renderers.

    Declaration
    public void Hide()

    SetColors(Color, Color)

    Sets the colors of the sprite renderers. Won't have any effect if the 'ignore set colors' is true.

    Declaration
    public void SetColors(Color color, Color detailColor)
    Parameters
    Type Name Description
    Color color
    Color detailColor

    SetSortOver(CustomizationSlot)

    Sets the sorting order of the sprite renderers to be higher than another CustomizationSlot.

    Declaration
    public void SetSortOver(CustomizationSlot sortOverSlot)
    Parameters
    Type Name Description
    CustomizationSlot sortOverSlot

    SetSprites(Sprite, Sprite)

    Sets the sprites of the sprite renderers.

    Declaration
    public virtual void SetSprites(Sprite sprite, Sprite detailSprite)
    Parameters
    Type Name Description
    Sprite sprite
    Sprite detailSprite

    Show()

    Shows the slot by enabling the sprite renderers.

    Declaration
    public void Show()
    In This Article
    • Fields
      • _detailSpriteRenderer
      • _spriteRenderer
    • Properties
      • DetailSortOrder
      • IsHidden
      • Location
      • OriginalSortOrder
      • SortOrder
      • Sprite
    • Methods
      • Clear()
      • Hide()
      • SetColors(Color, Color)
      • SetSortOver(CustomizationSlot)
      • SetSprites(Sprite, Sprite)
      • Show()
    Back to top 2D Customizable Characters