docs.unity3d.com
    Show / Hide Table of Contents

    Class Feature

    Base class of features (e.g., variants, packs) which has a non-empty string code and is contained in a feature set.

    Inheritance
    Object
    Feature
    Pack
    Variant
    Namespace: Unity.Industrial.Forma.Core.Variants
    Syntax
    public abstract class Feature : MonoBehaviour

    Properties

    code

    Code of the feature.

    Declaration
    public string code { get; }
    Property Value
    Type Description
    String

    The code.

    featureSet

    Feature set which contains this feature (must not be

    null
    ).

    Declaration
    public FeatureSet featureSet { get; }
    Property Value
    Type Description
    FeatureSet

    The feature set.

    Methods

    SetCode(String)

    Sets the code of this feature (must not be

    null
    or contain only whitespaces).

    Declaration
    public void SetCode(string newCode)
    Parameters
    Type Name Description
    String newCode

    The new code.

    Events

    codeChanged

    Raised when the code of the feature has been changed.

    Declaration
    public event CodeChangedHandler codeChanged
    Event Type
    Type Description
    CodeChangedHandler

    globalFeatureChangedHandler

    Occurs when [global feature changed handler].

    Declaration
    public static event CodeChangedHandler globalFeatureChangedHandler
    Event Type
    Type Description
    CodeChangedHandler
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023