Search Results for

    Show / Hide Table of Contents

    Class SizeFitter

    Simple script for resizing UI elements based on the childrens' sizes. Used for resizing the elements in the log (e.g. when there is a text block).

    Inheritance
    object
    SizeFitter
    Namespace: AS2.UI
    Assembly: .dll
    Syntax
    public class SizeFitter : MonoBehaviour

    Fields

    | Edit this page View Source

    resizeCentralizedInFrameAmount

    Declaration
    private int resizeCentralizedInFrameAmount
    Field Value
    Type Description
    int
    | Edit this page View Source

    resizeInFrameAmount

    Declaration
    private int resizeInFrameAmount
    Field Value
    Type Description
    int
    | Edit this page View Source

    updateHeight

    Declaration
    public bool updateHeight
    Field Value
    Type Description
    bool
    | Edit this page View Source

    updateWidth

    Declaration
    public bool updateWidth
    Field Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Resize()

    Internal normal resizing.

    Declaration
    private void Resize()
    | Edit this page View Source

    ResizeCentralized()

    Internal centralized resizing.

    Declaration
    private void ResizeCentralized()
    | Edit this page View Source

    ResizeCentralizedInFrameAmount(int)

    Centralized resizing assumes all children for a horizontal line (please disable updateWidth) or vertical line (please disable updateHeight) and are automatically oriented towards the center.

    Declaration
    public void ResizeCentralizedInFrameAmount(int frameAmount)
    Parameters
    Type Name Description
    int frameAmount
    | Edit this page View Source

    ResizeInFrameAmount(int)

    Normal resizing (probably) assumes all coordinates are set in world space and true coordinates are set. Not 100% sure though, got most of this from Stackoverflow.

    Declaration
    public void ResizeInFrameAmount(int frameAmount)
    Parameters
    Type Name Description
    int frameAmount
    | Edit this page View Source

    SetUpdatedValues(bool, bool)

    Declaration
    public void SetUpdatedValues(bool updateWidth, bool updateHeight)
    Parameters
    Type Name Description
    bool updateWidth
    bool updateHeight
    | Edit this page View Source

    Update()

    Declaration
    public void Update()
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX