Search Results for

    Show / Hide Table of Contents

    Class CustomizationData

    Data about a customization. This is the main object used for customizations.

    Inheritance
    Object
    CustomizationData
    Namespace: CustomizableCharacters
    Assembly: cs.temp.dll.dll
    Syntax
    public class CustomizationData : ScriptableObject

    Properties

    CanBeTinted

    Whether the customization should be able to change color or not.

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

    CanDetailsBeTinted

    Whether the customization detail should be able to change color or not.

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

    Category

    Data about a customization. This is the main object used for customizations.

    Declaration
    public CustomizationCategory Category { get; }
    Property Value
    Type Description
    CustomizationCategory

    LocationsToHide

    Customizations in locations that should be hidden when customization is added to character.

    Declaration
    public CustomizationLocation[] LocationsToHide { get; }
    Property Value
    Type Description
    CustomizationLocation[]

    SlotPriority

    Data about a customization. This is the main object used for customizations.

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

    SpriteSets

    Data about a customization. This is the main object used for customizations.

    Declaration
    public CustomizationSpriteSet[] SpriteSets { get; }
    Property Value
    Type Description
    CustomizationSpriteSet[]

    UseMainColorForDetail

    Whether the detail should use the main color.

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

    Methods

    ContainSprite(Sprite)

    Whether the customization has a sprite in any of the SpriteSets or DetailSpriteSets.

    Declaration
    public bool ContainSprite(Sprite sprite)
    Parameters
    Type Name Description
    Sprite sprite
    Returns
    Type Description
    Boolean

    GetDetailSpriteCount()

    Returns the amount of detail sprites the customization has. Note that this is not the total of all spritesets combined, but the largest one found.

    Declaration
    public int GetDetailSpriteCount()
    Returns
    Type Description
    Int32

    GetLocations()

    Returns all the locations in this customization.

    Declaration
    public List<CustomizationLocation> GetLocations()
    Returns
    Type Description
    List<CustomizationLocation>

    HasDetailSpriteAtIndex(Int32)

    Returns whether any sprite is references at index or not.

    Declaration
    public bool HasDetailSpriteAtIndex(int index)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Boolean

    HasDetailSprites()

    Returns whether the customization has any detail sprites or not.

    Declaration
    public bool HasDetailSprites()
    Returns
    Type Description
    Boolean
    In This Article
    • Properties
      • CanBeTinted
      • CanDetailsBeTinted
      • Category
      • LocationsToHide
      • SlotPriority
      • SpriteSets
      • UseMainColorForDetail
    • Methods
      • ContainSprite(Sprite)
      • GetDetailSpriteCount()
      • GetLocations()
      • HasDetailSpriteAtIndex(Int32)
      • HasDetailSprites()
    Back to top 2D Customizable Characters