Search Results for

    Show / Hide Table of Contents

    Class ScaleCustomizer

    Changes the scale of transforms by using ScaleGroups.

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

    Properties

    ScaleGroups

    Changes the scale of transforms by using ScaleGroups.

    Declaration
    public ReadOnlyCollection<ScaleGroup> ScaleGroups { get; }
    Property Value
    Type Description
    ReadOnlyCollection<ScaleGroup>

    Methods

    AddGroup(ScaleGroup)

    Adds and applies a ScaleGroup.

    Declaration
    public void AddGroup(ScaleGroup scaleGroup)
    Parameters
    Type Name Description
    ScaleGroup scaleGroup

    ApplyAllScaleGroups()

    Applies scaling of all ScaleGroups.

    Declaration
    public void ApplyAllScaleGroups()

    ApplyGroup(ScaleGroup)

    Applies scaling from a ScaleGroup.

    Declaration
    public void ApplyGroup(ScaleGroup scaleGroup)
    Parameters
    Type Name Description
    ScaleGroup scaleGroup

    ResetAllGroups()

    Resets all ScaleGroups values to 1. Note that this doesn't scale any of the transforms, use ApplyGroup after if you want to update the transforms.

    Declaration
    public void ResetAllGroups()

    TryGetScaleGroup(String)

    Find and returns any (if exists) ScaleGroup with a certain name.

    Declaration
    public ScaleGroup TryGetScaleGroup(string searchName)
    Parameters
    Type Name Description
    String searchName
    Returns
    Type Description
    ScaleGroup
    In This Article
    • Properties
      • ScaleGroups
    • Methods
      • AddGroup(ScaleGroup)
      • ApplyAllScaleGroups()
      • ApplyGroup(ScaleGroup)
      • ResetAllGroups()
      • TryGetScaleGroup(String)
    Back to top 2D Customizable Characters