docs.unity.cn
    Show / Hide Table of Contents

    Class FeatureChange

    Describes the change of a single feature.

    Inheritance
    Object
    FeatureChange
    Namespace: UnityEngine.Industrial.Configuring.Core
    Syntax
    public class FeatureChange

    Properties

    feature

    Feature that is changing.

    Declaration
    public Feature feature { get; }
    Property Value
    Type Description
    Feature

    The feature.

    isAdded

    true
    if added,
    false
    otherwise.
    Declaration
    public bool isAdded { get; }
    Property Value
    Type Description
    Boolean

    true if this instance is added; otherwise, false.

    isRemoved

    true
    if added,
    false
    otherwise.
    Declaration
    public bool isRemoved { get; }
    Property Value
    Type Description
    Boolean

    true if this instance is removed; otherwise, false.

    Methods

    Add(Feature)

    Creates and returns a feature change that adds a feature.

    Declaration
    public static FeatureChange Add(Feature feature)
    Parameters
    Type Name Description
    Feature feature

    The feature.

    Returns
    Type Description
    FeatureChange

    FeatureChange.

    Create(Feature, Boolean)

    Creates and returns a feature change that adds or removes a feature.

    Declaration
    public static FeatureChange Create(Feature feature, bool add)
    Parameters
    Type Name Description
    Feature feature

    The feature.

    Boolean add

    if set to true [add].

    Returns
    Type Description
    FeatureChange

    FeatureChange.

    Remove(Feature)

    Creates and returns a feature change that removes a feature.

    Declaration
    public static FeatureChange Remove(Feature feature)
    Parameters
    Type Name Description
    Feature feature

    The feature.

    Returns
    Type Description
    FeatureChange

    FeatureChange.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021