Search Results for

    Show / Hide Table of Contents

    Class ITreeUpdateAlgorithm

    The TreeUpdate algorithms provide huge optimizations in avoiding relayouting items that haven't changed, and add powerful features that auto-detect when the Unity Editor needs to relayout part (or all) of the UI.

    Inheritance
    Object
    ITreeUpdateAlgorithm
    ITreeUpdateAlgorithmV4
    Namespace: NinjaTools.FlexBuilder.LayoutAlgorithms
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class ITreeUpdateAlgorithm : ScriptableObject

    Properties

    - (String) defaultAssetName

    Each algorithm should have a unique name (this is used to create SO instances in Editor)

    - (ReadOnlyCollection<String>) featureDescription

    List of features that is human-readable (displayed in UnityEditor to help users choose which Algorithm to use)

    - (Version) version

    Mostly used for scripts to auto-check that an algorithm is newer or older than a previous one, useful for doing automatic upgrade detection, etc. Also used for deciding when to prune old code that only existed to service outdated algorithms

    December2023: Upgraded to automatically read a value from the Type's own [AssetVersion] attribute (all currently supported implementations have had that attribute now added retroactively, with appropriate values)

    Methods

    - (String) GetDebugInfo(FlexContainer)

    Returns useful internal debug info (specific to this implementation / algorithm) on a per-FlexContainer basis

    Parameters
    FlexContainer container
    Returns
    String
    In This Article
    Back to top http://flexbuilder.ninja