docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PortType<T>

    Generic port type to simplify port creation.

    Inheritance
    object
    IPortType
    PortType<T>
    PortTypeAnimationCurve
    PortTypeBool
    PortTypeEnum
    PortTypeFloat
    PortTypeGameObject
    PortTypeInt
    PortTypeQuaternion
    PortTypeString
    PortTypeTexture2D
    PortTypeUint
    PortTypeVector2
    PortTypeVector3
    PortTypeVector4
    Inherited Members
    IPortType.globalId
    IPortType.uniqueId
    IPortType.synchronizeAfterLinking
    IPortType.Clock
    IPortType.ChangeEvent
    IPortType.Batching
    IPortType.SignalBatch
    IPortType.Connected
    IPortType.Driver
    IPortType.SetConnected(bool)
    IPortType.SetSynchronizeAfterLinking(bool)
    IPortType.SetAsDriver(object)
    IPortType.BeginBatch()
    IPortType.EndBatch()
    IPortType.TypeNiceName(Type)
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Mechatronics.SystemGraph
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class PortType<T> : IPortType
    Type Parameters
    Name Description
    T

    Data type underlying the port.

    Constructors

    Name Description
    PortType()

    Creates the port and sets the exposed type.

    PortType(T)

    Creates a port with default value.

    Fields

    Name Description
    Data

    The data field

    Properties

    Name Description
    Read

    Read filtered data from the port.

    ReadRaw

    Read unfiltered data from the port.

    Write

    Write to the port and propagate to change event handlers and port filters.

    WriteRaw

    Write without port filters of change events.

    Methods

    Name Description
    CopyFrom(PortType<T>)

    Copies from.

    CreateFieldBox()

    Creates the field box.

    Propagate(double)

    Propagate all signals

    Ref()

    Get a reference to the underlying data. Propagates change events.

    SetOnChangeClockRisingEdge(bool)

    Set the ports to callback on new data

    Synchronize()

    Synchronizes this instance.

    ToString()

    Converts the port data into a string.

    TryGetValue()

    Try to get the value on this port.

    TrySetValue(object)

    Try to set a value on this port if it is allowed

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)