docs.unity.cn
    Show / Hide Table of Contents

    Class PortConverterAttribute

    Class PortConverterAttribute. The PortConverter attribute registers a from-to type converter for your ports. Implements the Attribute

    Inheritance
    Object
    Attribute
    PortConverterAttribute
    Namespace: Mechatronics.SystemGraph
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class PortConverterAttribute : Attribute, _Attribute

    Constructors

    PortConverterAttribute(Type, Type)

    Initializes a new instance of the PortConverterAttribute class.

    Declaration
    public PortConverterAttribute(Type _fromType, Type _toType)
    Parameters
    Type Name Description
    Type _fromType

    From type.

    Type _toType

    To type.

    Fields

    fromType

    From type

    Declaration
    public Type fromType
    Field Value
    Type Description
    Type

    toType

    To type

    Declaration
    public Type toType
    Field Value
    Type Description
    Type

    See Also

    Attribute
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 18, 2022
    Terms of use