docs.unity.cn
    Show / Hide Table of Contents

    Class IPortTypeConverter

    Base class for all port converters.

    Inheritance
    Object
    IPortType
    IPortTypeConverter
    PortConverter<FirstType, SecondType>
    PortInterConnect
    Inherited Members
    IPortType.globalId
    IPortType.uniqueId
    IPortType.synchronizeAfterLinking
    IPortType.Clock
    IPortType.ChangeEvent
    IPortType.Batching
    IPortType.SignalBatch
    IPortType.Connected
    IPortType.Driver
    IPortType.SetConnected(Boolean)
    IPortType.SetSynchronizeAfterLinking(Boolean)
    IPortType.CreateFieldBox()
    IPortType.TrySetValue(Object)
    IPortType.TryGetValue()
    IPortType.Synchronize()
    IPortType.Propagate(Double)
    IPortType.SetOnChangeClockRisingEdge(Boolean)
    IPortType.SetAsDriver(Object)
    IPortType.BeginBatch()
    IPortType.EndBatch()
    IPortType.TypeNiceName(Type)
    Namespace: Mechatronics.SystemGraph
    Syntax
    [Serializable]
    public class IPortTypeConverter : IPortType

    Fields

    driverSide

    Describes which side of the converter is taking priority.

    Declaration
    public IPortTypeConverter.DriverSide driverSide
    Field Value
    Type Description
    IPortTypeConverter.DriverSide

    rawFirstField

    The source side of the converter.

    Declaration
    public object rawFirstField
    Field Value
    Type Description
    Object

    rawSecondField

    The target side of the converter.

    Declaration
    public object rawSecondField
    Field Value
    Type Description
    Object

    Methods

    IsCompatible()

    Whether the two types are convertible.

    Declaration
    public virtual bool IsCompatible()
    Returns
    Type Description
    Boolean

    True if convertible.

    RebindPorts(IPortTypeConverter.DriverSide)

    Called when the converter is used by the linker. Any initialization can go here, the fields are properly set.

    Declaration
    public virtual void RebindPorts(IPortTypeConverter.DriverSide pDriverSide)
    Parameters
    Type Name Description
    IPortTypeConverter.DriverSide pDriverSide

    Describes which side of the converter has priority if any.

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