Class CustomizationSlot
A location in a rig that changes SpriteRenderers.
Inheritance
System.Object
CustomizationSlot
Assembly: cs.temp.dll.dll
Syntax
public class CustomizationSlot : MonoBehaviour
Fields
_detailSpriteRenderer
Declaration
protected SpriteRenderer _detailSpriteRenderer
Field Value
Type |
Description |
SpriteRenderer |
|
_spriteRenderer
Declaration
protected SpriteRenderer _spriteRenderer
Field Value
Type |
Description |
SpriteRenderer |
|
Properties
DetailSortOrder
Declaration
public int DetailSortOrder { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsHidden
Declaration
public bool IsHidden { get; }
Property Value
Type |
Description |
System.Boolean |
|
Location
Declaration
public CustomizationLocation Location { get; }
Property Value
OriginalSortOrder
Declaration
public int OriginalSortOrder { get; }
Property Value
Type |
Description |
System.Int32 |
|
SortOrder
Declaration
public int SortOrder { get; }
Property Value
Type |
Description |
System.Int32 |
|
Sprite
Declaration
public Sprite Sprite { get; }
Property Value
Methods
Clear()
Clears the slot by setting the sprites to null and colors to white.
Declaration
Hide()
Hides the slot by disabling the sprite renderers.
Declaration
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
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