Struct GhostTypeComponent | Unity NetCode | 0.2.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Struct GhostTypeComponent

    Component storing the guid of the prefab the ghost was created from. This is used to lookup ghost type in a robust way which works even if two ghosts have the same archetype

    Namespace: Unity.NetCode
    Syntax
    public struct GhostTypeComponent : IComponentData, IEquatable<GhostTypeComponent>

    Fields

    guid0

    Declaration
    public uint guid0
    Field Value
    Type Description
    UInt32

    guid1

    Declaration
    public uint guid1
    Field Value
    Type Description
    UInt32

    guid2

    Declaration
    public uint guid2
    Field Value
    Type Description
    UInt32

    guid3

    Declaration
    public uint guid3
    Field Value
    Type Description
    UInt32

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(GhostTypeComponent)

    Declaration
    public bool Equals(GhostTypeComponent other)
    Parameters
    Type Name Description
    GhostTypeComponent other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(GhostTypeComponent, GhostTypeComponent)

    Declaration
    public static bool operator ==(GhostTypeComponent lhs, GhostTypeComponent rhs)
    Parameters
    Type Name Description
    GhostTypeComponent lhs
    GhostTypeComponent rhs
    Returns
    Type Description
    Boolean

    Inequality(GhostTypeComponent, GhostTypeComponent)

    Declaration
    public static bool operator !=(GhostTypeComponent lhs, GhostTypeComponent rhs)
    Parameters
    Type Name Description
    GhostTypeComponent lhs
    GhostTypeComponent rhs
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX